obsidian_canvas_relayout
Re-layout an Obsidian canvas file using dagre, with direction options and dry-run for previewing without saving.
Instructions
Re-layout an existing JSON Canvas with dagre. Dry-run returns the candidate canvas without writing.
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": {
"path": "<path>"
},
"name": "obsidian_canvas_relayout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | No | Optional configured vault name. Defaults to the server default vault. | |
| path | Yes | Vault-relative path. Absolute paths and traversal are rejected. | |
| direction | No | TB | |
| dryRun | No |