Search text
file_searchSearches a single local directory for literal text or matching filenames within the allowed read policy, returning bounded results.
Instructions
Bounded literal text or filename search in one directory under the local read policy.
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>",
"query": "<query>"
},
"name": "file_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | content | |
| path | Yes | ||
| query | Yes | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| path | Yes | ||
| query | Yes | ||
| limits | Yes | ||
| matches | Yes | ||
| truncated | Yes | ||
| scanned_files | Yes |