Find ancestors
codetopo_ancestorsFind which nodes transitively reach a given node via calls and imports to trace code dependencies and callers.
Instructions
Nodes from which a node is transitively reachable over calls and imports edges.
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": {
"db_path": "<db_path>",
"node": "<node>"
},
"name": "codetopo_ancestors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node id to walk up from. | |
| limit | No | Maximum members to return. Default 20. | |
| expand | No | Return full node objects instead of ids. Default false. | |
| db_path | Yes | Path to the index database. |