list_files
List files under a specified path to review directory contents and locate target files, simplifying data exploration before loading.
Instructions
List files under path (file, directory, or glob).
Useful when you don't know what's in a directory and need to find a
specific file before calling load_source. For HDF5/array directories,
prefer detect_pattern() which also classifies the multi-file structure.
Output size: small (file list capped at max_files).
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": {
"path": "<path>"
},
"name": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||