add_to_canvas
Place references (with a steal note), Mobbin screens, draft screenshots, your own app's before and after screens, notes, color swatches, sections and design system tiles on a board, and save the board's calibration. Direction results go to their direction's section, art above UI.
| Plan | Quota | Changes data | Hints |
|---|---|---|---|
| All. Free boards hold 40 items, Pro 300 | Item cap per board | Yes |
Inputs
Section titled “Inputs”| Name | Type | Required | Limits | What it does |
|---|---|---|---|---|
canvasId |
string | Yes | 1 to 100 characters | The board |
items |
object[] | Yes | 1 to 50 per call; may be [] when the call sends only calibration |
What to place, see below |
sectionId |
string | No | 1 to 120 characters | Put the items in this section |
calibration |
object or null |
No | offset a whole number from -50 to 20, source 1 to 120 characters |
The board’s calibration from your own estimate of a draft, see Calibration. null clears it |
thumbs |
boolean | No | default true |
A small thumbnail of each placed reference in the result (up to 12), so the agent checks what it placed. Never for Mobbin screens: the agent just added them, so one line names them instead |
Item types
Section titled “Item types”type |
Fields | Notes |
|---|---|---|
reference |
referenceId (required), note (1 to 280 characters) |
A search result from the tray. The note says what to steal: start it with steal: |
screen |
imageUrl and sourceUrl (required), app, title, platform (ios or web), note, directionId |
A Mobbin screen from your own Mobbin connector: its image_url and mobbin_url, passed as returned. sourceUrl must be an https page on mobbin.com, imageUrl https on mobbin.com. Placed as a UI reference with source mobbin.com, hotlinked, never fetched. ios gives a phone shaped tile. Pass the connector’s screen id as screenId: adding the same screenId again replaces the image of the tile already on the board (Mobbin image links expire after about 30 days; get_canvas lists the ones to refresh). See Using Mobbin alongside |
build |
imageUrl and measure (required), fidelity and refsUsed (sent with a full draft), phoneImageUrl (a landing page’s 390 screenshot), fidelityWhy, stitchId or directionId (one required, unless it is a before or after screen, below), url or sourceUrl, file (a local draft’s HTML path), artifactUrl (the https link to its interactive copy), motion (slide, post, logo and brand boards: { kind, duration, url?, result? }), shot ("host-tool"), title, note |
A screenshot of your own build or draft, for side by side review: imageUrl is an https link to the screenshot (from get_upload_link), url the https link to the build. Leave url out (or pass a local file path or a localhost link) for a local draft: it is placed, its board link opens the screenshot only, the tile says “Local draft”, and the path is never stored. Pass the draft’s HTML path as file (or as url) and only its file name is kept: the tile, the reply and get_canvas say local file: <name>, never the folder. When the draft also has an interactive copy (a hosted artifact), pass its https link as artifactUrl: the tile shows an “Open the interactive version” link, the reply gives the link in place of “never call it a live draft”, get_canvas lists interactive version: <link> (and artifactUrl in the summary), and export_kit names it next to the kept draft. A link that is not https is left out with a warning; the draft is still placed. Any other link that is not https is refused. measure is the object gb-measure writes to measure.json; a rough (titled Rough: ..., or measure.rough) may send measure: { rough: true } alone. Checks are reported on the tile, never refused: FAILs (named in measure.openFails or not, gb-lint’s in measure.lintFails too, gb-fidelity’s in fidelity.fails), a body under 16px and every axis in fidelity.far with no fidelityWhy line are placed and listed as open, on the tile (“Still open”) and in the reply (“Item 1: Open: 2 FAILs (text-overlap, small-text), imagery far from the hero.”). A draft is a mix the hero leads, never a copy: the hero sets the look and the layout is composed from the hero and the direction’s kept references, so a far layout is never open, only advice (“Advice: layout far from the hero (hero-led: the layout is composed from the hero and the kept references).”). A number left out of measure (fails, textElements or bodyPx, for example when your host blocked the checks) is not a refusal: the reply and the tile list it under “Not measured”. A page with no running text (only labels and data) has no body size: gb-measure leaves bodyPx out and writes measure.noRunningText: true, and the body is then not listed under “Not measured”. measure.checks (optional, never a gate) is the first measure round’s counts (fails, warns, lintFails), from measure.json’s checks; send that one. measure.scores (optional) holds the draft’s scores, 0 to 100, on layout, light, colour, type, density and motion, plus criticMedian (the critics’ raw median) and critics (how many rated, a whole number up to 50). Each is { value, label }, where label is "measured" (a command printed it this round), "eyeballed" (a person or a model judged it) or "not measured" (no value); a bare number counts as eyeballed. A bad label, a measured or eyeballed score with no value, or a value out of range refuses the draft like any malformed measure field. measure.colorDelta (optional) is gb-fidelity --color’s colorDelta as written, { saturation: { mean, worst, worstCell }, brightness: { mean, worst, worstCell }, verdict }; parts that do not fit are dropped, never refused. The tile shows both in a Scores block: measured numbers first, then “Judged by eye” and “Not measured” in muted text, then “Colour check: round1 holds the same counts: sent as measure.round1 it is stored as checks when checks is missing, and a top level checks is read the same way when measure has none. A full draft also sends fidelity, the object gb-fidelity writes to fidelity.json (v, scores: how close the draft is to the hero on layout, palette, type, imagery and density, from 0 to 1, type may be null when not measured, and far), plus fidelity.parts when the draft took parts from their own references: [{ part, itemId, pixel, structure, done }], one per part (at most 12), pixel and structure 0 to 100 as the part diff prints them, and fidelity.fails with gb-fidelity’s FAIL ids (["hero-far"] when the look is far from the hero, ["near-copy"] when the draft is a near copy of one reference; a printed FAIL near-copy: ... line is read as its id): listed as open with the gb-measure FAILs, an id named in both counted once, and shown after the scores in get_canvas (fails hero-far). refsUsed is [{ part, itemId }]: the hero ({ part: "hero", itemId }) is enough, and each part reference in fidelity.parts is added to it. A missing fidelity or refsUsed is placed with a one-line warning. When your host refused to run the check scripts, send fidelity: { blocked: "host" } (exactly that): the draft is placed, nothing is stored for fidelity, the reply says the checks could not run on this host in place of the fidelity and Not measured lines, the tile says “Checks blocked on this host: no measured numbers”, and get_canvas lists the draft with checks: blocked on this host. When only gb-measure was refused, send measure: { blocked: "host" } (viewports and languages may ride along): a full draft gets the same tile line and get_canvas entry, the reply never says “not measured”, and with real fidelity scores it says gb-measure could not run on this host. A host that blocked the checks sends both, measure: { blocked: "host" } and fidelity: { blocked: "host" }. When the screenshot came from a browser tool your host provides (such as Playwright MCP) and not from gb-shoot, add shot: "host-tool": the tile says “Unchecked screenshot from a host browser tool”, the reply says so, and get_canvas lists shot: host browser tool, unchecked. A landing page sends its 1440 screenshot as imageUrl and its 390 screenshot as phoneImageUrl (an https link from its own get_upload_link): a second tile, titled “refsUsed and fidelity. The reply names it in one line, “it_43 is the 390 shot of it_42: a separate phone tile, shown in a phone frame on the board.”, and structuredContent carries phoneTiles ([{ itemId, of, frame: "phone" }]). A full-page screenshot taller than 2000 px is fine on the board, which shows the whole shot, but it is never decoded and gets no thumbnail in the reply: to see it there, upload its first-screen shot (gb-shoot’s 1440x900 or 390x844 view) as well. Keep fidelity.jpg on your machine: it holds the hero, so never upload it; a shot sent inside fidelity is ignored (the top level shot above is a different field). fidelityWhy (optional) gives one line per far axis that departs on purpose (palette, type, imagery or density: { "imagery": "why it departs on purpose" }; a layout line is shown with its advice). Ids from its section, its tray or its craft references count; img_ and ref_ ids of the same reference are one. Its hero must be hero tier (a curated reference at the top quality on the board’s platform, from search_references with heroes: true): a full draft on any other hero is refused, and a rough is placed with a line that says so. Refused otherwise only when malformed: no measure, malformed fields, bad links, or refsUsed or fidelity.parts ids that are not its direction’s (a rough drops its parts with a warning instead). The tile shows “Built from” with each source link and, for each part, its match (“86.4% pixels, structure 41, not done”), the scores, and your draft’s screenshot beside the hero reference’s own image (loaded from its source, so a hero removed after a takedown request shows nothing). Placed right of its Frankenstein page, or in its direction’s section, with a Build chip. Image bytes are refused. Motion (slide, post, logo and brand boards): a logo reveal, a post loop or a deck’s slide builds goes as a build whose imageUrl is its poster frame (uploaded like any screenshot) and whose motion is `{ kind: “logo_reveal” |
build with before: true or after: true |
imageUrl (required: the link get_upload_link answered for this board), before or after (true), url or sourceUrl, title, note, measure (optional) |
A screenshot of your own live app, for a rescue (see Rescue an existing app). before marks the current screen, the baseline; after marks the same screen after the clean-up. Upload the screenshot with get_upload_link and pass the imageUrl it answers: it must be a link from an upload for your account and this board, and any other link (a screenshot hosted elsewhere, another user’s or another board’s upload) skips the item, so a third party image can never be shown as your own app. Use screens with demo, staging or seed data only, never real customer data. It takes no directionId or stitchId, no fidelity, no refsUsed and no phoneImageUrl (send the phone screen as its own item). shot: "host-tool" is kept, as for any build: the tile and the reply say the screenshot came from a host browser tool and is unchecked. measure is optional: leave it out, or pass the object gb-measure writes, and open FAILs and a small body show on the tile as for any build (the tile never says “not measured”). before: true and after: true on one item skips it: send two items. The shots land in a section titled Before (or After), one row, left to right in the order you place them, after the shots already there. The board’s own Before or After section is reused (any capitals), else one named in the same call, else a new one is made at the end of the board; it is never a direction’s section. A shot titled Rough: ... is still a before or after shot, not a rough. get_canvas marks each with before: true or after: true |
note |
text (1 to 2000 characters) |
A yellow note. Links are clickable. Caps labels like WILD: show as chips |
swatch |
hex (#abc or #aabbcc), role (up to 60 characters) |
A color swatch, tagged explore until a contrast check says otherwise |
section |
title (1 to 120 characters), directionId |
A frame that groups items |
system |
name (1 to 80 characters, required), installCommand, artifactUrl, files (slide, post, logo and brand boards: up to 8 of the brand kit’s file paths), swatches (up to 12 { hex, role? }, role up to 40 characters), directionId |
A design system tile, after export_kit made the system. installCommand must be the one command export_kit system answered, exactly as given (npx shadcn@latest add with this app’s /r/ link; nothing else is accepted, up to 400 characters). artifactUrl is the https link to the system sheet you published. Send at least one of the two. On a slide, post, logo or brand board the brand kit has no install command: send artifactUrl or files (an install command there skips the item), and the tile keeps the paths and shows their file names under “Kit files”; the reply says the tile holds the kit’s name, its file names and swatches (with the sheet link when sent), asks your agent to give you the sheet link or the file paths, and never mentions an install command. One tile per direction: a second one for the same direction replaces it in place. The tile shows the command with a Copy button and the sheet link; the reply asks your agent to give you the same command and link in the chat. Share pages of the board never show the install command. See Design system and install |
How your agent makes a draft before it places one, the floor every draft is held to, and the known limits: see Drafts.
Placement rules
Section titled “Placement rules”- A reference found for a direction goes to that direction’s section. If there is none yet, it is created. A
screenwith adirectionIdgoes there too. - A
sectionthe board already has (a section without a direction of the same title, such as Space, or the direction’s own section) is not added twice: the reply names the one there underreused. - In a direction section, art zone items sit in a labelled Art direction row above the UI references grid. The zone comes with the reference.
- A rough screen (a
buildtitledRough: ..., or withmeasure.rough) goes to its direction’s section in one row with the other roughs: the same height across every direction section, below their references, left to right in the order you place them. No arrange step is needed. A rough with nourlof its own links to its screenshot only, and its tile says so. - A draft measured only at phone widths (430 CSS px or less), or a rough with no viewports for a phone app, is placed in a portrait tile 280 wide by 606 tall, the shape of a 390x844 screen. Tiles placed before this stay 280x210 until you resize them or place the draft again.
- A phone draft or rough (measured at phone widths, or a phone shaped screenshot) shows in a phone frame on the board, rounded corners in a dark outline; a tall screenshot scrolls inside it. Its entry in the reply carries
frame: "phone"and one line says “it_42 is a phone draft: shown in a phone frame on the board.” A landing page’s 390 tile also carriesframe: "phone", but its reply keeps only its own “is the 390 shot of” line, never the phone draft line. The board’s Phone frames switch turns frames off. See Reading a board. - A batch that would cross the item cap is refused whole.
- A before or after screen (
before: trueorafter: true) goes to the Before or After section on its own, never a direction’s. Each one, and the section if it is new, counts toward the item cap.arrange_canvasandplace_keptkeep these screens in one row in the order they sit in, so arranging a board never scatters them. - Cultural and heritage images (crafts, patterns, clothing, monuments, ancient pieces) fill at most 15% of the board’s images, 20% when the user asked for culture. Past that, a cultural reference is skipped and stays in the tray. Notes, drafts and uploads do not count.
- Never place results rated
bad; they have left the tray anyway.
Calibration
Section titled “Calibration”Critics tend to score a draft higher than you would, so your own estimate wins. When you rate a draft (“this is a 60”), your agent sends calibration: offset, the points to add to every critic median on this board (your number minus the critics’ median, from -50 to 20), and source, your estimate in your words (up to 120 characters, kept as one line). It stays until you give a new one; null clears it. get_canvas then reports it with each draft’s adjusted median.
Send it alone with items: []: nothing is placed and the board is not touched.
{ "name": "add_to_canvas", "arguments": { "canvasId": "c3f1a0d2-6b1e-4d8a-9f4b-0a1b2c3d4e5f", "items": [], "calibration": { "offset": -25, "source": "this is a 60, the cards look flat" } } }Calibration -25 points saved from the user's estimate. Add it to every critic median and report the calibrated number; get_canvas shows it.structuredContent is { canvasId, calibration: { offset, source, updatedAt }, webUrl } (calibration is null after a clear). Sent with items, it is saved after they are placed, its line follows the placement lines, and the output adds the same calibration. If the board cannot keep it (for example while a server update is still rolling out), the call is not refused: the reply says so, and any items are still placed.
Example call
Section titled “Example call”{ "name": "add_to_canvas", "arguments": { "canvasId": "c3f1a0d2-6b1e-4d8a-9f4b-0a1b2c3d4e5f", "sectionId": "sec_cereal", "items": [ { "type": "note", "text": "WILD: giant sparklines everywhere. PATTERN: a loud front panel with a puzzle panel on the side. SIGNATURE: the hero built like a cereal box." }, { "type": "reference", "referenceId": "ref_3m7k", "note": "steal: the side panel puzzle as the section divider" }, { "type": "reference", "referenceId": "ref_8k2p", "note": "steal: the oversized product shot cropped by the fold" } ] }}Example output
Section titled “Example output”Added 3 items to "Coffee launch page".- note it_41 at (120, 96) in section sec_cereal- image it_42 at (120, 300) in section sec_cereal- image it_43 at (440, 640) in section sec_cerealWeb link: https://gobanana.fun/c/c3f1a0d2-…Skipped items are listed with a reason, for example a referenceId that is not in the tray, or a screen whose links are not on mobbin.com.
Messages
Section titled “Messages”| Message | Fix |
|---|---|
| “This canvas has reached the 40 item limit on the free plan. Upgrade: …” | Remove items, new board, or upgrade |
| “This canvas has reached the 300 item limit. Remove some items or start a new canvas.” | Pro, or any account during the beta. Remove items or start a new board |
| “That section was not found on this canvas. Call get_canvas to see section ids.” | Use a current sectionId |
| “items must be a list of 1 to 50 items…” | Check the item shapes above. An empty items is accepted only with calibration |
| “calibration must be { offset, source }: offset a whole number of points from -50 to 20 …” | Send a whole offset from -50 to 20 and your estimate as source, or null to clear it |
| “The board could not keep the calibration right now. Apply the offset yourself this session and report calibrated numbers.” | Not an error for the items: they are placed. Your agent adds the offset itself for the rest of the session |
| “Item 1: measure.scores.layout: …” | Send each score as { value, label } with a value from 0 to 100 (critics a whole number up to 50), or { "label": "not measured" } |
| “Item 1 is a draft with no measure. Pass the measure object from gb-measure’s measure.json (a rough: measure { rough: true }).” | Pass the measure object; a rough sends { rough: true } |
| “Item 1: not measured: failing checks and text elements (no fails or textElements in measure), so the tile says so.” | Not an error: the draft is placed and its tile lists them under Not measured |
| “Item 1: placed as a local draft: its board link opens the screenshot only; say so, never call it a live draft.” | Not an error: no https link was given, so the board link opens the screenshot. With file, the line ends “local file: dial.html.” With artifactUrl, the line reads “placed as a local draft with its interactive version on the tile; its board link opens the screenshot; give the user the interactive version: .” |
| “Item 1: artifactUrl was left out: it must be the https link to the draft’s interactive copy.” | Not an error: the draft is placed without it. Send the artifact’s https link |
| “Skipped item 1: A before shot goes in the “Before” section on its own: leave out directionId and stitchId.” (an after shot says “After”) | Leave out directionId and stitchId on a screen with before: true or after: true |
| “Skipped item 1: A before or after shot must be your own screenshot uploaded with get_upload_link: pass the imageUrl it answered, never another link.” | Upload the screenshot with get_upload_link for this board and pass the imageUrl it answers |
| “Skipped item 1: A before or after shot is one screenshot: leave out phoneImageUrl and send the phone screen as its own item.” | Send the phone screen as a second item |
| “Skipped item 1: An item is a before shot or an after shot, not both. Send two items.” | Send the before screen and the after screen as two items |
| “Skipped item 1: url must be the https link to the build, or a local file path for a local draft (or leave it out).” | Pass an https link, a local path, or no url |
| “Item 1: fidelity.parts img_9 is not a reference of direction “…” … Not placed.” | Use ids of this direction’s kept references for each part |
| “Item 1: Open: 2 FAILs (text-overlap, small-text), imagery far from the hero.” | Not an error: the draft is placed and these show on its tile as still open |
| “Item 1: Open: 1 FAIL (near-copy).” | Placed. gb-fidelity found the draft too close to one reference (pixels or structure): keep the hero’s look and compose the layout from the hero and the kept references |
| “Item 1: checks could not run on this host, so its tile shows no match with the hero and no measured numbers; nothing was invented.” | Not an error: sent with fidelity: { blocked: "host" }. To get scores next time, allow the check scripts (Claude Code setup) |
| “Item 1: gb-measure could not run on this host, so its tile shows no measured numbers; nothing was invented.” | Not an error: sent with measure: { blocked: "host" } and real fidelity scores |
| “Item 1: screenshot taken with a host browser tool, not gb-shoot, so the tile says it is unchecked.” | Not an error: sent with shot: "host-tool" |
| “Skipped item 1: phoneImageUrl must be an https link to the 390 screenshot, never image bytes.” | Upload the 390 shot with get_upload_link and pass the imageUrl it answers |
| “Item 1: Advice: layout far from the hero (hero-led: the layout is composed from the hero and the kept references).” | Placed. A draft takes the hero’s look, not its layout, so a far layout is advice on every board, never open; a fidelityWhy.layout line is shown after it |
| “Item 1: Advice: layout and density far from the hero (a sheet of panels never matches one hero shot; …).” | Placed. On a slide, social post, logo or brand identity board, layout and density far from the hero are always advice, never open. The sheet reason is for a logo or brand sheet, or a draft whose hero shows several slides or posts; a single slide or post says “(the artboard composition differs from the hero; say why in the reply)”. A hero-far FAIL made only of those two axes is not open either |
| “Item 1: placed with no fidelity, so its tile shows no match with the hero. …” | Placed. Run gb-fidelity once and pass its object next time; do not upload fidelity.jpg |
| “Item 1: placed with no refsUsed, so its tile shows no hero beside it. …” | Placed. Pass refsUsed with at least the hero next time |
| “Skipped item 1: installCommand must be the one command export_kit system answered (npx shadcn@latest add with this app’s /r/ link), exactly as given.” | Pass the command from export_kit system unchanged |
| “Skipped item 1: artifactUrl must be the https link to the published system sheet.” | Pass the system sheet’s https link |
| “Skipped item 1: a system tile needs installCommand or artifactUrl (or both), from export_kit.” | Send the install command, the sheet link, or both |
| “Skipped item 1: a system tile on a slide, post, logo or brand board needs artifactUrl or files (the brand kit’s file paths), from export_kit.” | Send the sheet link, the kit’s files, or both |
| “Skipped item 1: a slide, post, logo or brand board’s brand kit has no install command: send artifactUrl or files instead.” | Leave installCommand out on that board |
| “Item 1: the hero img_… is not a hero-tier reference: pick one from search_references { heroes: true, directionId: “…” }, …” | Pick a hero-tier hero, run reconcile_direction, rebuild the draft in its look |
| “Item 1: refsUsed img_9 is not a reference of direction “…” …” | Use ids of this direction (reconcile_direction lists its kept references) |
Next: arrange_canvas.