codegraph_filter
Filter code graph nodes by type, exports, calls, return type, or file path to find relevant functions, classes, modules, or files. Results sorted by connectedness, with adjustable limit and token budget.
Instructions
Filter graph nodes by semantic properties. Results sorted by PageRank (most connected first). All filters optional — combine freely. node_type: function|class|module|file. exported/side_effect: bool. return_type: substring match. called_by/calls: node name. file_pattern: glob. token_budget: max tokens in response.
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": {
"path": "<path>"
},
"name": "codegraph_filter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| calls | No | Only nodes that call this name | |
| limit | No | Max results (default 20) | |
| exported | No | ||
| called_by | No | Only nodes called by this name | |
| node_type | No | ||
| return_type | No | Substring match on return type | |
| side_effect | No | ||
| file_pattern | No | Glob pattern for file path | |
| token_budget | No | Max tokens in response |