canvas_read
tools/call
Read a canvas as nodes (id, shape, text, x, y, w, h, frame, link, color), edges (id, from, to, label, style, heads) and frames, with the canvas seq. With since: a seq you read before, only what changed after it, plus removed ids. With format mermaid: the board as a Mermaid flowchart. With format elements: every element with its type, position, size, points, attachments, groups and style, in the words and ids draw and update take, so an element sent back as update changes nothing; add points true for pen strokes' points. An image gives its Files id as file only when you can read that file (read:files); otherwise it reads without file. Pass the seq you read as baseSeq when you write, so you never overwrite a person's later change.
Scopes
read:projects
A project canvas also needs its project to be readable, and for writes writable (Edit tasks, not archived) by the connection's person. An organization canvas is readable when its person owns it or it is shared with the organization, and writable when its person owns it or holds Edit tasks on a shared one. A write that draws an image, or moves, restyles or lays out one already on the board, also needs read:files (an OAuth agent's Read files line) and the file readable in Files; deleting an image reads no file. The elements read names an image's file only to a caller that can read it this way. A file Design holds (a capture or a revision preview) is never placed or changed this way, so the Files rule for Design files (read:design) does not apply.
Inputs
- canvasIdstringRequired
- sinceinteger
- Only changes after this seq.
- format"json" | "mermaid" | "elements"
- pointsboolean
- With format elements: each pen stroke's points and pressures too.
- cursorstring
Returns
The canvas as complete agent JSON (nodes, edges and frames, or with format elements its elements) for a bounded page (or whole-board Mermaid text), with its seq and next cursor. Page size follows native read budgets; follow nextCursor until null. Every internal context continuation checks the original live access and the same seq; sequence drift refuses the read. A call returns content[0].text with the JSON result and structuredContent.result with the same value.
Listed when
The connection has read:projects and Canvas is open for the organization; the tools that write need write:projects too.