GET returns the board’s shapes back to front: each shape’s id, kind
(geo, note, text, arrow, draw, line, image, frame…), position,
size, text and color, and for an arrow bound to shapes, the fromId and
toId it connects. Shapes drawn by hand read back too; the API places notes,
text, geometric shapes and arrows.
PATCH takes a list of operations, applied in order and all or nothing,
and lands live for anyone with the board open.
Colours are tldraw’s palette:
black, grey, violet, light-violet,
blue, light-blue, yellow, orange, green, light-green, red,
light-red, white.
SDK
Reading needs
documents:read; editing needs documents:write and Can edit on the page. Stella and MCP clients can
add, move and connect shapes but not delete them.