search_in_files
Search project files to find text matches, retrieving file name, line number, and content for every occurrence.
Instructions
Grep project file contents and return matching file, 1-based line number and text
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_in_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | res:// | |
| query | Yes | ||
| regex | No | ||
| file_type | No | ||
| max_results | No |