search_codebase
Find code patterns, functions, classes, or specific content across a workspace using regex, names, or natural language, with optional file-type filters and surrounding context.
Instructions
Search for code patterns, functions, classes, or specific content across the workspace
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": {
"query": "<query>"
},
"name": "search_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query (can be regex, function names, or natural language) | |
| fileTypes | No | File extensions to search in (e.g., [".ts", ".js", ".py"]) | |
| includeContext | No | Include surrounding context for matches |