Search files
search_filesSearch text files in a workspace line by line like grep, skipping hidden directories and binary files. Filter matches by glob, regex, case sensitivity, and max count.
Instructions
Search text files in the workspace line by line, like grep.
Hidden directories and binary files are skipped.
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": "search_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | Only search files whose name matches. | * |
| path | No | File or directory to search in. | . |
| query | Yes | Text (or regex, see `regex`) to look for. | |
| regex | No | Treat query as a Python regex. | |
| max_results | No | ||
| case_sensitive | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| matches | Yes | ||
| truncated | Yes | ||
| files_scanned | Yes |