search_files
Search file names or file contents for a literal query in a directory, returning matching paths and lines plus an incomplete flag when results are truncated.
Instructions
Bounded literal file-name or content search. Uses ripgrep when available, otherwise a built-in bounded fallback. Returns paths/lines and incomplete flag. No regex interpretation of the query.
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": {
"directory": "<directory>",
"query": "<query>"
},
"name": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | ||
| limit | No | ||
| query | Yes | ||
| directory | Yes | ||
| files_only | No |