Expand Nodes
expand_nodesWalk outward from named entities to collect every connected entity and relation within a chosen depth, assembling topic context when neighboring content matters as much as the starting entity.
Instructions
Walk out from the entities you name: every entity within depth hops, with the relations that touch them. Use it instead of read_graph to assemble the context around a topic, and instead of open_nodes when the neighbours' content matters as much as the entity you started from. The walk ignores direction, stops on cycles, and skips names that do not exist rather than failing. When limit binds, truncated is true and the farthest entities are the ones left out.
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": {
"names": "<names>"
},
"name": "expand_nodes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many hops to walk, 1 by default and at most 5 | |
| limit | No | The most entities to return, 200 by default | |
| names | Yes | The entities to start from |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entities | Yes | ||
| relations | Yes | ||
| truncated | Yes |