subgraph
Retrieve the local neighborhood of a concept or symbol from a knowledge graph, returning connected nodes and edges. Use to explore relationships and context around an entity.
Instructions
Return the local neighbourhood of a concept or symbol as {nodes, edges}.
repo_path: optional absolute path to the target repository.
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": {
"entity": "<entity>"
},
"name": "subgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| entity | Yes | ||
| repo_path | No |