search_code
Search indexed code symbols by name, qualified name, kind, language, file, export status, and cyclomatic complexity to locate matching functions, classes, or other nodes.
Instructions
Multi-criteria search across indexed symbols filtering by name, qualified name, kind, language, file, export status, and cyclomatic complexity.
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 |
|---|---|---|---|
| kinds | No | List of node kinds (Function, Class, Struct, Interface, etc.). | |
| limit | No | Maximum results to return (default 50). | |
| offset | No | Pagination offset. | |
| languages | No | List of languages to include. | |
| file_pattern | No | File path pattern (* / ? / substring). | |
| name_pattern | No | Symbol name pattern (* / ? / substring). | |
| exported_only | No | When true, match only exported symbols. | |
| qname_pattern | No | Qualified name pattern (* / ? / substring). | |
| max_complexity | No | Maximum cyclomatic complexity filter (0 means unbounded). | |
| min_complexity | No | Minimum cyclomatic complexity filter. |