Read subgraph
read_subgraphThe nodes and links around a node, optionally with their contents: one call to load the context around a topic. Use it with bodies=1 to read everything connected to a node at once.
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": {
"g": "<g>"
},
"name": "read_subgraph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| g | Yes | Id of a graph. | |
| rel | No | Only links of this relationship type. | |
| root | No | Id of the node to start from. Without it, the newest nodes. | |
| depth | No | Hops to walk outward, 0 to 3. Default 1. | |
| limit | No | Most nodes to return. Default 50. | |
| bodies | No | 1 to append the nodes' contents, nearest first. | |
| budget | No | With bodies=1: stop after this many bytes of content. Default 16000. | |
| credential | No | The bin's credential, "{bin_id}.{secret}", as create_bin returned it. Leave it out if your client sends it as an Authorization header. |