search_related_code
Finds related code by traversing structural call and import graphs, returning callers, callees, and imports with hop distance from specified names.
Instructions
Structural search: expand the graph from names up to hops away.
Returns neighbor nodes (callers/callees/imports) with hop distance. Requires the repo to have been ingested (graph.json present).
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": {
"names": "<names>"
},
"name": "search_related_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hops | No | ||
| names | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |