get_subgraph
Extract a local subgraph around a target node to view its neighbors within a configurable number of hops, enabling focused dependency analysis.
Instructions
Extract a local subgraph for AI context. Provides a concise view of a node and its neighbors.
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": {
"node_id": "<node_id>"
},
"name": "get_subgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_id | Yes | ID of the target node. | |
| radius | No | Number of hops to include (default: 2). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||