search_content
Find text inside files: query is literal, or a JavaScript regular expression matched per line with regex true, searched recursively under path (a folder or one file), skipping hidden files unless includeHidden; .git and node_modules are always skipped. filePattern limits it to matching files, a glob like *.js. Returns JSON matches with file, line number and line text; contextLines adds lines around each. Stops after limits.timeoutMs (default 10 seconds) or limits.maxEntries folder entries read, or when cancelled, and then returns the matches found so far with truncated true, limitReached and a note.
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": "search_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | Yes | ||
| regex | No | ||
| limits | No | ||
| deviceId | No | Computer name or id | |
| filePattern | No | ||
| contextLines | No | ||
| caseSensitive | No | ||
| includeHidden | No | ||
| workSessionId | No | From create_work_session |