list_files
Find media files in a directory with optional glob pattern matching and recursive subdirectory search.
Instructions
List media files in a directory.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory": "<directory>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | Glob pattern for matching files. Default: all common media formats | |
| directory | Yes | Directory path to search | |
| recursive | No | Search subdirectories. Default: false |