canvas_add_block
Places an existing Roam block on a specified canvas as a block shape, using the block’s text as its label; create the block first, then pass its uid.
Instructions
Place an existing Roam block on a canvas (the extension's Block shape). The block's current text becomes the shape label; live canvases render the block itself. Does not create blocks — create the block first, then pass its uid. For pages use canvas_add_node.
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>",
"block": "<block>"
},
"name": "canvas_add_block"
}
}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. | |
| block | Yes | Uid of an existing Roam block, or a ((uid)) block ref | |
| 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 |