Canvas Node Connections
canvas.connectionsRetrieve incoming and outgoing edges for a specific canvas node, enabling step-by-step graph traversal without loading the entire file. Use to inspect local connections or navigate between linked nodes.
Instructions
Return the incoming and outgoing edges of a single canvas node. Use this to walk the canvas graph one node at a time without loading the full document. Read-only. For full-graph parsing, use canvas.parse.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
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": {
"filePath": "<filePath>",
"nodeId": "<nodeId>"
},
"name": "canvas.connections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Id of the node whose edges to return. | |
| filePath | Yes | Vault-relative path to an Obsidian `.canvas` file. | |
| vaultPath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| filePath | Yes | ||
| incoming | Yes | ||
| outgoing | Yes |