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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "search_code"
}
}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) |