list_files
Display files in a specified directory, optionally filtered by a pattern like *.txt, to organize and manage file contents effectively.
Instructions
List files in a directory
Input Schema
Name | Required | Description | Default |
---|---|---|---|
directory | Yes | Path to the directory to list files from | |
pattern | No | Pattern to filter files by (e.g., *.txt) |
Input Schema (JSON Schema)
{
"properties": {
"directory": {
"description": "Path to the directory to list files from",
"type": "string"
},
"pattern": {
"description": "Pattern to filter files by (e.g., *.txt)",
"type": "string"
}
},
"required": [
"directory"
],
"type": "object"
}