A .canvas board is a directory bundle that stores references, generated
outputs, and notes on an infinite canvas. For a linear presentation, use the slides skill.
Structure
- The bundle is a folder whose name ends in
.canvas(e.g.poster.canvas/). .canvas.json(the manifest) holds the STRUCTURE: which documents are on the
board, their placement, order, and the editor mode.
- Each document's CONTENT is a separate file (or a URL) referenced by its
src. - Manifest shape (only
srcis required per document):
```json
{
"editor": "board",
"documents": [
{
"src": "https://…/ref.jpg",
"id": "ref1",
"layout": { "x": 0, "y": 0, "w": 480, "h": 320 }
},
{
"src": "outputs/hero.png",
"id": "hero",
"layout": { "x": 520, "y": 0, "w": 768, "h": 512 }
}
]
}
```
editor: "board"= freeform infinite canvas (placement vialayout).
editor: "slides" = linear deck (order) — see the slides skill.
layoutis{ x, y, w, h, z? }in world space (z = paint order, optional).
A document with no layout is unplaced — the host positions it; set a
layout to place it deliberately.
Authoring and validation
- Create a directory ending in
.canvasand place the manifest inside it.
The directory is the board. It is renderable when the manifest references
an existing, renderable document with a visible composition.
- A document's
srccan be a URL or a path inside the bundle. To keep a
generated image portable, copy it into the bundle and reference its
bundle-relative path, for example outputs/hero.png.
- Each pin has its own identity and placement. Several pins can refer to the
same SVG source. Identify the selected pin before changing its placement.
Editing the SVG affects every pin that shares that file.
- Move and resize a pin through its
layout. Use document order andzto
control stacking. Reread the current manifest before making a change so
concurrent edits, such as a user dragging a pin, are preserved. Keep its
version, $schema, editor, and unknown fields.