search_code
Search for keywords or patterns across the codebase and retrieve file path, line number, and surrounding context.
Instructions
Search for a keyword or pattern across the codebase. Returns file path, line number, and surrounding context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Keyword, function name, or pattern to search for | |
| filePattern | No | Glob pattern to limit search, e.g. "**/*.ts" | |
| maxResults | No | Max results to return (default 20) |