canvas_add_node
Add a discourse node to a canvas by placing an existing Roam page or creating a typed node from node type and text, returning the new shape ID and page UID.
Instructions
Add a discourse node to a canvas. Either reference an existing Roam page (existing_page = title or uid) or provide node_type + text to create the node page (title formatted per the type's format string; v1 does not fill {Source}-style referenced tokens or insert templates). Pages that match no discourse node type get the generic Page shape. For Roam blocks use canvas_add_block. Returns the new shape id and node page uid.
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": {
"canvas": "<canvas>"
},
"name": "canvas_add_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| page | No | Tldraw page to target (name or page record id), for canvases with several pages — see canvas_read `pages`. Omit on single-page canvases. | |
| text | No | Node content — substituted into the type's {content} format slot | |
| graph | No | Graph name or nickname. Auto-selects if only one graph is configured. | |
| canvas | Yes | Canvas page title (e.g. 'Canvas/My Map') or its 9-char page uid | |
| node_type | No | Node type id, name, format tag (e.g. EVD), or shortcut — see canvas_types | |
| existing_page | No | Title or uid of an existing Roam page to place on the canvas |