File Search
file_searchSearches for files and folders by name (case-insensitive, partial match) starting from a root directory. Defaults to the home directory. Returns matching items with path, type, and size, most recently modified first. Office lock files (~$name) are never returned, and nothing under ~/Library is unless root points inside it.
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": {
"query": "<query>"
},
"name": "file_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Root directory to search from. Defaults to home directory (~). | |
| query | Yes | Filename pattern to search for (partial, case-insensitive) | |
| file_type | No | Filter by extension, e.g. 'pdf', 'docx', 'xlsx'. Omit for all types. | |
| max_results | No | Maximum number of results to return. Default 50, max 200. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | With partial: what to do next (a narrower root or query). | |
| root | No | ||
| count | No | ||
| query | No | ||
| partial | No | Present and true when the search stopped at its limit before covering the whole folder: the results may be incomplete. | |
| results | No |