Search Files
search_filesLocate files under a path by filename glob or literal content substring, capping matches and optionally including hidden files.
Instructions
Search files under a path by name glob and/or literal content.
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": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_results | No | cap on matches | |
| name_pattern | No | fnmatch glob like '*.log' or 'config*' | |
| include_hidden | No | descend into dotfiles | |
| content_pattern | No | literal substring to find in file contents |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |