Search files by name
file_searchFind files matching a glob pattern starting from a specified root directory, searching recursively. Returns the paths of matching files.
Instructions
Recursively find files whose name matches a glob pattern (e.g. *.log).
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": {
"root": "<root>",
"pattern": "<pattern>"
},
"name": "file_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | ||
| pattern | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |