search_code
Search file contents by regex or literal text across a workspace, returning path:line:text matches with optional surrounding context lines.
Instructions
Search file contents with a regex (ripgrep when installed, Node fallback otherwise). Returns path:line: text; context adds surrounding lines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| glob | No | File filter, e.g. "*.ts" | |
| path | No | Directory to search (default: default workspace) | |
| query | Yes | Regex (or literal text with literal: true) | |
| context | No | ||
| literal | No | ||
| maxResults | No | ||
| caseSensitive | No |