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, .git and node_modules unless includeHidden. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| query | Yes | ||
| regex | No | ||
| limits | No | ||
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| filePattern | No | ||
| contextLines | No | ||
| caseSensitive | No | ||
| includeHidden | No | ||
| workSessionId | No | Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work. |