Search in files
files_searchSearch the text of the project for a string or regex, like grep. Returns matching lines with their file and line number. Use it to find where something is defined or used instead of reading files one by one.
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": {
"id": "<id>",
"query": "<query>"
},
"name": "files_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| glob | No | Only files whose name matches, e.g. '*.php' or '*.{ts,js}'. Omit to search every text file. | |
| path | No | Limit the search to this directory, or to a single file. Defaults to the whole volume. | |
| query | Yes | Text to find, or a regular expression when regex is true. | |
| regex | No | Treat query as a JavaScript regular expression. Default false. | |
| maxResults | No | Default 100. | |
| caseSensitive | No | Default false. |