Visual

Whiteboards

The 4 tools for whiteboards. Before an agent first makes one, it reads guide topic whiteboards.

create_whiteboard

Make a whiteboard in a space: an endless shared canvas of shapes, sticky notes, text, arrows, lines, pen strokes, pictures (yours drawn as SVG, or from add_asset) and sections — for brainstorms, retros, timelines, maps of ideas, explainers and plans that people rearrange together, with everyone's cursor live. Give its elements back to front, sections first. Read guide topic "whiteboards" first; see it with render_whiteboard.

Parameters

space_idstringrequired
titlestringrequired
elementsobject[]
Show child attributes
idstring
Short and stable ("e1", "e2", …, or a name like "launch"); made for you when left out. Arrows, changes and comments use it.
typestringrequired
shape: a box with words (needs x, y, w, h). note: a sticky note (x, y, text). text: words with no box (x, y, text). arrow: from → to. line: straight segments through points. pen: a marker stroke through points. image: a picture (x, y, w, h and src or svg). section: a named frame that holds what is inside it (x, y, w, h, title). One of shape, note, text, arrow, line, pen, image, section.
xnumber
Left edge, in board units (1 unit = 1 px at 100%). For line and pen: where its points are measured from.
ynumber
Top edge.
wnumber
Width: shape, note (default 200), image, section.
hnumber
Height: shape, note (default 200), image, section. A box too small for its words is made taller.
shapestring
shape only: rounded (default), rectangle, ellipse, diamond. One of rectangle, rounded, ellipse, diamond.
textstring
The words: on a shape or a note (inside it), or a text element. "\n" breaks a line. A few words each.
sizestring | number
Text size: small 16, body 20 (default), large 28, title 48, huge 72, or pixels.
alignstring
Where words sit: text left, shapes and notes center, by default. One of left, center, right.
colorstring
shape and note: the fill, one of yellow, orange, pink, red, purple, blue, teal, green, grey, white, none (a note is yellow, a shape white, by default). text, arrow, line, pen: the ink, one of ink, grey, red, orange, yellow, green, teal, blue, purple, pink, white, none. Or #rrggbb.
strokestring
shape: its outline, one of ink, grey, red, orange, yellow, green, teal, blue, purple, pink, white, none (ink by default; none for a borderless card).
dashedboolean
A dashed outline, arrow or line.
wrapnumber
text: the width it wraps at (often 300 to 400). Left out, it runs on one line.
fromstring | any[]
arrow: where it starts, an element id (it stays joined when people move it) or a point [x, y].
tostring | any[]
arrow: where it points, an element id or a point [x, y].
labelstring
arrow: words on it, only when what it means is not plain.
headsstring
arrow: end (default), both, none. One of end, both, none.
pointsnumber[]
line and pen: [x0, y0, x1, y1, …] from x, y. A pen stroke is drawn as a marker through them: for a curve, a point every 10 to 20 units.
widthnumber
line and pen: thickness, 1 to 8 (default 2).
srcstring
image: a picture of this space, the url add_asset returned (/api/uploads/…).
svgstring
image: your own drawing, one whole <svg viewBox="0 0 W H">…</svg> of g, path, rect, circle, ellipse, line, polyline and polygon only, no words; give w and h in its viewBox's ratio. The guide says how to draw well.
titlestring
section: its name, shown above it.
sectionstring
The section it belongs in, by id ("" for none). Left out, it goes in the section it is placed inside, if any.
linkstring
A web address (https://…) or another item's link it opens.
lockedboolean
Locked: people can't move or change it until they unlock it.

read_whiteboard

A whiteboard as it is now, people's drawing included: its elements back to front, each with its id, type, place (x, y, w, h), words, colours, the section it is in, what an arrow joins, and who made it (by), plus the board's bounds and checks. People move and change things: read before every change.

Parameters

item_idstringrequired

update_whiteboard

Change a whiteboard. Any of: title; add (new elements, written like create_whiteboard's, drawn on top); change (by id: only the fields given change — moving a section moves what is in it, moving a shape takes its arrows along; order front or back); remove (by id: an element goes with its words and the arrows joined to it). Applied in that order, all or nothing, while people may be working on the board: only what you name changes. read_whiteboard first for the ids.

Parameters

item_idstringrequired
titlestring
addobject[]
Show child attributes
idstring
Short and stable ("e1", "e2", …, or a name like "launch"); made for you when left out. Arrows, changes and comments use it.
typestringrequired
shape: a box with words (needs x, y, w, h). note: a sticky note (x, y, text). text: words with no box (x, y, text). arrow: from → to. line: straight segments through points. pen: a marker stroke through points. image: a picture (x, y, w, h and src or svg). section: a named frame that holds what is inside it (x, y, w, h, title). One of shape, note, text, arrow, line, pen, image, section.
xnumber
Left edge, in board units (1 unit = 1 px at 100%). For line and pen: where its points are measured from.
ynumber
Top edge.
wnumber
Width: shape, note (default 200), image, section.
hnumber
Height: shape, note (default 200), image, section. A box too small for its words is made taller.
shapestring
shape only: rounded (default), rectangle, ellipse, diamond. One of rectangle, rounded, ellipse, diamond.
textstring
The words: on a shape or a note (inside it), or a text element. "\n" breaks a line. A few words each.
sizestring | number
Text size: small 16, body 20 (default), large 28, title 48, huge 72, or pixels.
alignstring
Where words sit: text left, shapes and notes center, by default. One of left, center, right.
colorstring
shape and note: the fill, one of yellow, orange, pink, red, purple, blue, teal, green, grey, white, none (a note is yellow, a shape white, by default). text, arrow, line, pen: the ink, one of ink, grey, red, orange, yellow, green, teal, blue, purple, pink, white, none. Or #rrggbb.
strokestring
shape: its outline, one of ink, grey, red, orange, yellow, green, teal, blue, purple, pink, white, none (ink by default; none for a borderless card).
dashedboolean
A dashed outline, arrow or line.
wrapnumber
text: the width it wraps at (often 300 to 400). Left out, it runs on one line.
fromstring | any[]
arrow: where it starts, an element id (it stays joined when people move it) or a point [x, y].
tostring | any[]
arrow: where it points, an element id or a point [x, y].
labelstring
arrow: words on it, only when what it means is not plain.
headsstring
arrow: end (default), both, none. One of end, both, none.
pointsnumber[]
line and pen: [x0, y0, x1, y1, …] from x, y. A pen stroke is drawn as a marker through them: for a curve, a point every 10 to 20 units.
widthnumber
line and pen: thickness, 1 to 8 (default 2).
srcstring
image: a picture of this space, the url add_asset returned (/api/uploads/…).
svgstring
image: your own drawing, one whole <svg viewBox="0 0 W H">…</svg> of g, path, rect, circle, ellipse, line, polyline and polygon only, no words; give w and h in its viewBox's ratio. The guide says how to draw well.
titlestring
section: its name, shown above it.
sectionstring
The section it belongs in, by id ("" for none). Left out, it goes in the section it is placed inside, if any.
linkstring
A web address (https://…) or another item's link it opens.
lockedboolean
Locked: people can't move or change it until they unlock it.
changeobject[]
Show child attributes
idstringrequired
The element to change, by id.
xnumber
Left edge, in board units (1 unit = 1 px at 100%). For line and pen: where its points are measured from.
ynumber
Top edge.
wnumber
Width: shape, note (default 200), image, section.
hnumber
Height: shape, note (default 200), image, section. A box too small for its words is made taller.
shapestring
shape only: rounded (default), rectangle, ellipse, diamond. One of rectangle, rounded, ellipse, diamond.
textstring
The words: on a shape or a note (inside it), or a text element. "\n" breaks a line. A few words each.
sizestring | number
Text size: small 16, body 20 (default), large 28, title 48, huge 72, or pixels.
alignstring
Where words sit: text left, shapes and notes center, by default. One of left, center, right.
colorstring
shape and note: the fill, one of yellow, orange, pink, red, purple, blue, teal, green, grey, white, none (a note is yellow, a shape white, by default). text, arrow, line, pen: the ink, one of ink, grey, red, orange, yellow, green, teal, blue, purple, pink, white, none. Or #rrggbb.
strokestring
shape: its outline, one of ink, grey, red, orange, yellow, green, teal, blue, purple, pink, white, none (ink by default; none for a borderless card).
dashedboolean
A dashed outline, arrow or line.
wrapnumber
text: the width it wraps at (often 300 to 400). Left out, it runs on one line.
fromstring | any[]
arrow: where it starts, an element id (it stays joined when people move it) or a point [x, y].
tostring | any[]
arrow: where it points, an element id or a point [x, y].
labelstring
arrow: words on it, only when what it means is not plain.
headsstring
arrow: end (default), both, none. One of end, both, none.
pointsnumber[]
line and pen: [x0, y0, x1, y1, …] from x, y. A pen stroke is drawn as a marker through them: for a curve, a point every 10 to 20 units.
widthnumber
line and pen: thickness, 1 to 8 (default 2).
srcstring
image: a picture of this space, the url add_asset returned (/api/uploads/…).
svgstring
image: your own drawing, one whole <svg viewBox="0 0 W H">…</svg> of g, path, rect, circle, ellipse, line, polyline and polygon only, no words; give w and h in its viewBox's ratio. The guide says how to draw well.
titlestring
section: its name, shown above it.
sectionstring
The section it belongs in, by id ("" for none). Left out, it goes in the section it is placed inside, if any.
linkstring
A web address (https://…) or another item's link it opens.
lockedboolean
Locked: people can't move or change it until they unlock it.
orderstring
Bring it to the front, or send it to the back. One of front, back.
removestring[]

render_whiteboard

See a whiteboard as people do: a screenshot of the whole board fitted to the view (or of one area), with checks — things lying on each other, things sticking out of their section, boxes made taller to fit their words, pictures that did not load — and errors the page hit.

Parameters

item_idstringrequired
areaobject
Only this part of the board, in board units.
Show child attributes
xnumberrequired
ynumberrequired
wnumberrequired
hnumberrequired