search_graph
Filter and paginate code graph searches by symbol name, type, file path, relationships, and connection counts.
Instructions
Search the code graph with flexible filters and pagination.
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_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | exact type filter (function, class, method, struct, etc.) | |
| limit | No | max results per page (default 10) | |
| query | No | case-insensitive substring match on symbol name | |
| offset | No | pagination offset (default 0) | |
| direction | No | "inbound" or "outbound" (used with relationship) | |
| max_degree | No | maximum total connections (0 = isolated/dead code) | |
| min_degree | No | minimum total connections | |
| file_pattern | No | substring match on file path | |
| relationship | No | edge type filter (CALLS, IMPORTS, CONTAINS) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||