traverse_graph
Traverse code relationship graphs by specifying start nodes, direction, depth, and edge types to explore dependencies and connections. Filter results with node and edge budgets for controlled queries.
Instructions
traverse graph
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": {
"repository_id": "<repository_id>",
"target_commit": "<target_commit>",
"start_node_ids": "<start_node_ids>"
},
"name": "traverse_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| node_id | No | ||
| direction | No | ||
| edge_types | No | ||
| request_id | No | ||
| to_node_id | No | ||
| edge_budget | No | ||
| node_budget | No | ||
| snapshot_id | No | ||
| from_node_id | No | ||
| tool_version | No | ||
| repository_id | Yes | ||
| target_commit | Yes | ||
| schema_version | No | ||
| start_node_ids | Yes |