get_subgraph
Retrieve all nodes and edges connected to a root design node within a specified depth and any direction, optionally filtered by edge type, to explore project knowledge structure.
Instructions
Everything connected to root_id within depth hops, any direction.
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": {
"root_id": "<root_id>"
},
"name": "get_subgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| root_id | Yes | ||
| edge_types | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edges | No | ||
| nodes | No |