Skip to content

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
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
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: (saturation , brightness )”. See Scores on a draft tile. measure.json’s 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 “ (390)”, phone shaped and framed, is placed right after the wide one with the same <code dir="auto">refsUsed</code> and <code dir="auto">fidelity</code>. 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 <code dir="auto">structuredContent</code> carries <code dir="auto">phoneTiles</code> (<code dir="auto">[{ itemId, of, frame: "phone" }]</code>). 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 <code dir="auto">shot</code> sent inside <code dir="auto">fidelity</code> is ignored (the top level <code dir="auto">shot</code> above is a different field). <code dir="auto">fidelityWhy</code> (optional) gives one line per far axis that departs on purpose (palette, type, imagery or density: <code dir="auto">{ "imagery": "why it departs on purpose" }</code>; a <code dir="auto">layout</code> line is shown with its advice). Ids from its section, its tray or its craft references count; <code dir="auto">img_</code> and <code dir="auto">ref_</code> 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 <a href="/docs/reference/tools/search-references/#hero-candidates"><code dir="auto">search_references</code></a> with <code dir="auto">heroes: true</code>): 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 <code dir="auto">refsUsed</code> or <code dir="auto">fidelity.parts</code> 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. <strong>Motion (slide, post, logo and brand boards):</strong> a logo reveal, a post loop or a deck’s slide builds goes as a build whose <code dir="auto">imageUrl</code> is its poster frame (uploaded like any screenshot) and whose <code dir="auto">motion</code> is `{ kind: “logo_reveal”</td> </tr> <tr> <td><code dir="auto">build</code> with <code dir="auto">before: true</code> or <code dir="auto">after: true</code></td> <td><code dir="auto">imageUrl</code> (required: the link <code dir="auto">get_upload_link</code> answered for this board), <code dir="auto">before</code> or <code dir="auto">after</code> (<code dir="auto">true</code>), <code dir="auto">url</code> or <code dir="auto">sourceUrl</code>, <code dir="auto">title</code>, <code dir="auto">note</code>, <code dir="auto">measure</code> (optional)</td> <td>A screenshot of your own live app, for a rescue (see <a href="/docs/guides/rescue-an-existing-app/">Rescue an existing app</a>). <code dir="auto">before</code> marks the current screen, the baseline; <code dir="auto">after</code> marks the same screen after the clean-up. Upload the screenshot with <a href="/docs/reference/tools/get-upload-link/"><code dir="auto">get_upload_link</code></a> and pass the <code dir="auto">imageUrl</code> 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 <code dir="auto">directionId</code> or <code dir="auto">stitchId</code>, no <code dir="auto">fidelity</code>, no <code dir="auto">refsUsed</code> and no <code dir="auto">phoneImageUrl</code> (send the phone screen as its own item). <code dir="auto">shot: "host-tool"</code> is kept, as for any build: the tile and the reply say the screenshot came from a host browser tool and is unchecked. <code dir="auto">measure</code> 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”). <code dir="auto">before: true</code> and <code dir="auto">after: true</code> on one item skips it: send two items. The shots land in a section titled <strong>Before</strong> (or <strong>After</strong>), 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 <code dir="auto">Rough: ...</code> is still a before or after shot, not a rough. <a href="/docs/reference/tools/get-canvas/"><code dir="auto">get_canvas</code></a> marks each with <code dir="auto">before: true</code> or <code dir="auto">after: true</code></td> </tr> <tr> <td><code dir="auto">note</code></td> <td><code dir="auto">text</code> (1 to 2000 characters)</td> <td>A yellow note. Links are clickable. Caps labels like <code dir="auto">WILD:</code> show as chips</td> </tr> <tr> <td><code dir="auto">swatch</code></td> <td><code dir="auto">hex</code> (<code dir="auto">#abc</code> or <code dir="auto">#aabbcc</code>), <code dir="auto">role</code> (up to 60 characters)</td> <td>A color swatch, tagged <code dir="auto">explore</code> until a contrast check says otherwise</td> </tr> <tr> <td><code dir="auto">section</code></td> <td><code dir="auto">title</code> (1 to 120 characters), <code dir="auto">directionId</code></td> <td>A frame that groups items</td> </tr> <tr> <td><code dir="auto">system</code></td> <td><code dir="auto">name</code> (1 to 80 characters, required), <code dir="auto">installCommand</code>, <code dir="auto">artifactUrl</code>, <code dir="auto">files</code> (slide, post, logo and brand boards: up to 8 of the brand kit’s file paths), <code dir="auto">swatches</code> (up to 12 <code dir="auto">{ hex, role? }</code>, role up to 40 characters), <code dir="auto">directionId</code></td> <td>A design system tile, after <a href="/docs/reference/tools/export-kit/"><code dir="auto">export_kit</code></a> made the system. <code dir="auto">installCommand</code> must be the one command <code dir="auto">export_kit</code> <code dir="auto">system</code> answered, exactly as given (<code dir="auto">npx shadcn@latest add</code> with this app’s <code dir="auto">/r/</code> link; nothing else is accepted, up to 400 characters). <code dir="auto">artifactUrl</code> 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 <code dir="auto">artifactUrl</code> or <code dir="auto">files</code> (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 <a href="/docs/guides/design-system/">Design system and install</a></td> </tr> </tbody> </table> <p>How your agent makes a draft before it places one, the floor every draft is held to, and the known limits: see <a href="/docs/reference/skills/#drafts">Drafts</a>.</p> <div class="sl-heading-wrapper level-h2"><h2 id="placement-rules">Placement rules</h2><a class="sl-anchor-link" href="#placement-rules"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Placement rules”</span></a></div> <ul> <li>A reference found for a direction goes to that direction’s section. If there is none yet, it is created. A <code dir="auto">screen</code> with a <code dir="auto">directionId</code> goes there too.</li> <li>A <code dir="auto">section</code> the 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 under <code dir="auto">reused</code>.</li> <li>In a direction section, <strong>art</strong> zone items sit in a labelled <strong>Art direction</strong> row above the <strong>UI references</strong> grid. The zone comes with the reference.</li> <li>A rough screen (a <code dir="auto">build</code> titled <code dir="auto">Rough: ...</code>, or with <code dir="auto">measure.rough</code>) 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 no <code dir="auto">url</code> of its own links to its screenshot only, and its tile says so.</li> <li>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.</li> <li>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 <code dir="auto">frame: "phone"</code> 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 carries <code dir="auto">frame: "phone"</code>, but its reply keeps only its own “is the 390 shot of” line, never the phone draft line. The board’s <strong>Phone frames</strong> switch turns frames off. See <a href="/docs/guides/reading-a-board/#phone-frames-for-drafts">Reading a board</a>.</li> <li>A batch that would cross the item cap is refused whole.</li> <li>A before or after screen (<code dir="auto">before: true</code> or <code dir="auto">after: true</code>) goes to the <strong>Before</strong> or <strong>After</strong> section on its own, never a direction’s. Each one, and the section if it is new, counts toward the item cap. <a href="/docs/reference/tools/arrange-canvas/"><code dir="auto">arrange_canvas</code></a> and <code dir="auto">place_kept</code> keep these screens in one row in the order they sit in, so arranging a board never scatters them.</li> <li>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.</li> <li>Never place results rated <code dir="auto">bad</code>; they have left the tray anyway.</li> </ul> <div class="sl-heading-wrapper level-h2"><h2 id="calibration">Calibration</h2><a class="sl-anchor-link" href="#calibration"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Calibration”</span></a></div> <p>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 <code dir="auto">calibration</code>: <code dir="auto">offset</code>, the points to add to every critic median on this board (your number minus the critics’ median, from -50 to 20), and <code dir="auto">source</code>, your estimate in your words (up to 120 characters, kept as one line). It stays until you give a new one; <code dir="auto">null</code> clears it. <a href="/docs/reference/tools/get-canvas/#calibration"><code dir="auto">get_canvas</code></a> then reports it with each draft’s adjusted median.</p> <p>Send it alone with <code dir="auto">items: []</code>: nothing is placed and the board is not touched.</p> <div class="expressive-code"><link rel="stylesheet" href="/docs/_astro/ec.9hkc6.css"><script type="module" src="/docs/_astro/ec.0vx5m.js"></script><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="json" class="wrap" style="--ecMaxLine:190ch"><code><div class="ec-line"><div class="code"><span style="--0:#E1E4E8">{ </span><span style="--0:#79B8FF">"name"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"add_to_canvas"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"arguments"</span><span style="--0:#E1E4E8">: { </span><span style="--0:#79B8FF">"canvasId"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"c3f1a0d2-6b1e-4d8a-9f4b-0a1b2c3d4e5f"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"items"</span><span style="--0:#E1E4E8">: [], </span><span style="--0:#79B8FF">"calibration"</span><span style="--0:#E1E4E8">: { </span><span style="--0:#79B8FF">"offset"</span><span style="--0:#E1E4E8">: </span><span style="--0:#79B8FF">-25</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"source"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"this is a 60, the cards look flat"</span><span style="--0:#E1E4E8"> } } }</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="{ "name": "add_to_canvas", "arguments": { "canvasId": "c3f1a0d2-6b1e-4d8a-9f4b-0a1b2c3d4e5f", "items": [], "calibration": { "offset": -25, "source": "this is a 60, the cards look flat" } } }"><div></div></button></div></figure></div> <div class="expressive-code"><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="text" class="wrap" style="--ecMaxLine:139ch"><code><div class="ec-line"><div class="code"><span style="--0:#e1e4e8">Calibration -25 points saved from the user's estimate. Add it to every critic median and report the calibrated number; get_canvas shows it.</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="Calibration -25 points saved from the user's estimate. Add it to every critic median and report the calibrated number; get_canvas shows it."><div></div></button></div></figure></div> <p><code dir="auto">structuredContent</code> is <code dir="auto">{ canvasId, calibration: { offset, source, updatedAt }, webUrl }</code> (<code dir="auto">calibration</code> is <code dir="auto">null</code> 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 <code dir="auto">calibration</code>. 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.</p> <div class="sl-heading-wrapper level-h2"><h2 id="example-call">Example call</h2><a class="sl-anchor-link" href="#example-call"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Example call”</span></a></div> <div class="expressive-code"><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="json" class="wrap" style="--ecMaxLine:177ch"><code><div class="ec-line"><div class="code"><span style="--0:#E1E4E8">{</span></div></div><div class="ec-line" style="--ecIndent:2ch"><div class="code"><span class="indent"> </span><span style="--0:#79B8FF">"name"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"add_to_canvas"</span><span style="--0:#E1E4E8">,</span></div></div><div class="ec-line" style="--ecIndent:2ch"><div class="code"><span class="indent"> </span><span style="--0:#79B8FF">"arguments"</span><span style="--0:#E1E4E8">: {</span></div></div><div class="ec-line" style="--ecIndent:4ch"><div class="code"><span class="indent"> </span><span style="--0:#79B8FF">"canvasId"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"c3f1a0d2-6b1e-4d8a-9f4b-0a1b2c3d4e5f"</span><span style="--0:#E1E4E8">,</span></div></div><div class="ec-line" style="--ecIndent:4ch"><div class="code"><span class="indent"> </span><span style="--0:#79B8FF">"sectionId"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"sec_cereal"</span><span style="--0:#E1E4E8">,</span></div></div><div class="ec-line" style="--ecIndent:4ch"><div class="code"><span class="indent"> </span><span style="--0:#79B8FF">"items"</span><span style="--0:#E1E4E8">: [</span></div></div><div class="ec-line" style="--ecIndent:6ch"><div class="code"><span class="indent"><span style="--0:#E1E4E8"> </span></span><span style="--0:#E1E4E8">{ </span><span style="--0:#79B8FF">"type"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"note"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"text"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"WILD: giant sparklines everywhere. PATTERN: a loud front panel with a puzzle panel on the side. SIGNATURE: the hero built like a cereal box."</span><span style="--0:#E1E4E8"> },</span></div></div><div class="ec-line" style="--ecIndent:6ch"><div class="code"><span class="indent"><span style="--0:#E1E4E8"> </span></span><span style="--0:#E1E4E8">{ </span><span style="--0:#79B8FF">"type"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"reference"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"referenceId"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"ref_3m7k"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"note"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"steal: the side panel puzzle as the section divider"</span><span style="--0:#E1E4E8"> },</span></div></div><div class="ec-line" style="--ecIndent:6ch"><div class="code"><span class="indent"><span style="--0:#E1E4E8"> </span></span><span style="--0:#E1E4E8">{ </span><span style="--0:#79B8FF">"type"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"reference"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"referenceId"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"ref_8k2p"</span><span style="--0:#E1E4E8">, </span><span style="--0:#79B8FF">"note"</span><span style="--0:#E1E4E8">: </span><span style="--0:#9ECBFF">"steal: the oversized product shot cropped by the fold"</span><span style="--0:#E1E4E8"> }</span></div></div><div class="ec-line" style="--ecIndent:4ch"><div class="code"><span class="indent"><span style="--0:#E1E4E8"> </span></span><span style="--0:#E1E4E8">]</span></div></div><div class="ec-line" style="--ecIndent:2ch"><div class="code"><span class="indent"><span style="--0:#E1E4E8"> </span></span><span style="--0:#E1E4E8">}</span></div></div><div class="ec-line"><div class="code"><span style="--0:#E1E4E8">}</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="{ "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" } ] }}"><div></div></button></div></figure></div> <div class="sl-heading-wrapper level-h2"><h2 id="example-output">Example output</h2><a class="sl-anchor-link" href="#example-output"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Example output”</span></a></div> <div class="expressive-code"><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="text" class="wrap" style="--ecMaxLine:49ch"><code><div class="ec-line"><div class="code"><span style="--0:#e1e4e8">Added 3 items to "Coffee launch page".</span></div></div><div class="ec-line"><div class="code"><span style="--0:#e1e4e8">- note it_41 at (120, 96) in section sec_cereal</span></div></div><div class="ec-line"><div class="code"><span style="--0:#e1e4e8">- image it_42 at (120, 300) in section sec_cereal</span></div></div><div class="ec-line"><div class="code"><span style="--0:#e1e4e8">- image it_43 at (440, 640) in section sec_cereal</span></div></div><div class="ec-line"><div class="code"><span style="--0:#e1e4e8">Web link: https://gobanana.fun/c/c3f1a0d2-…</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="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-…"><div></div></button></div></figure></div> <p>Skipped items are listed with a reason, for example a <code dir="auto">referenceId</code> that is not in the tray, or a <code dir="auto">screen</code> whose links are not on mobbin.com.</p> <div class="sl-heading-wrapper level-h2"><h2 id="messages">Messages</h2><a class="sl-anchor-link" href="#messages"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Messages”</span></a></div> <table> <thead> <tr> <th>Message</th> <th>Fix</th> </tr> </thead> <tbody> <tr> <td>“This canvas has reached the 40 item limit on the free plan. Upgrade: …”</td> <td>Remove items, new board, or upgrade</td> </tr> <tr> <td>“This canvas has reached the 300 item limit. Remove some items or start a new canvas.”</td> <td>Pro, or any account during the beta. Remove items or start a new board</td> </tr> <tr> <td>“That section was not found on this canvas. Call get_canvas to see section ids.”</td> <td>Use a current <code dir="auto">sectionId</code></td> </tr> <tr> <td>“items must be a list of 1 to 50 items…”</td> <td>Check the item shapes above. An empty <code dir="auto">items</code> is accepted only with <code dir="auto">calibration</code></td> </tr> <tr> <td>“calibration must be { offset, source }: offset a whole number of points from -50 to 20 …”</td> <td>Send a whole <code dir="auto">offset</code> from -50 to 20 and your estimate as <code dir="auto">source</code>, or <code dir="auto">null</code> to clear it</td> </tr> <tr> <td>“The board could not keep the calibration right now. Apply the offset yourself this session and report calibrated numbers.”</td> <td>Not an error for the items: they are placed. Your agent adds the offset itself for the rest of the session</td> </tr> <tr> <td>“Item 1: measure.scores.layout: …”</td> <td>Send each score as <code dir="auto">{ value, label }</code> with a value from 0 to 100 (<code dir="auto">critics</code> a whole number up to 50), or <code dir="auto">{ "label": "not measured" }</code></td> </tr> <tr> <td>“Item 1 is a draft with no measure. Pass the measure object from gb-measure’s measure.json (a rough: measure { rough: true }).”</td> <td>Pass the measure object; a rough sends <code dir="auto">{ rough: true }</code></td> </tr> <tr> <td>“Item 1: not measured: failing checks and text elements (no fails or textElements in measure), so the tile says so.”</td> <td>Not an error: the draft is placed and its tile lists them under Not measured</td> </tr> <tr> <td>“Item 1: placed as a local draft: its board link opens the screenshot only; say so, never call it a live draft.”</td> <td>Not an error: no https link was given, so the board link opens the screenshot. With <code dir="auto">file</code>, the line ends “local file: dial.html.” With <code dir="auto">artifactUrl</code>, 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: <link>.”</td> </tr> <tr> <td>“Item 1: artifactUrl was left out: it must be the https link to the draft’s interactive copy.”</td> <td>Not an error: the draft is placed without it. Send the artifact’s https link</td> </tr> <tr> <td>“Skipped item 1: A before shot goes in the “Before” section on its own: leave out directionId and stitchId.” (an after shot says “After”)</td> <td>Leave out <code dir="auto">directionId</code> and <code dir="auto">stitchId</code> on a screen with <code dir="auto">before: true</code> or <code dir="auto">after: true</code></td> </tr> <tr> <td>“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.”</td> <td>Upload the screenshot with <code dir="auto">get_upload_link</code> for this board and pass the <code dir="auto">imageUrl</code> it answers</td> </tr> <tr> <td>“Skipped item 1: A before or after shot is one screenshot: leave out phoneImageUrl and send the phone screen as its own item.”</td> <td>Send the phone screen as a second item</td> </tr> <tr> <td>“Skipped item 1: An item is a before shot or an after shot, not both. Send two items.”</td> <td>Send the before screen and the after screen as two items</td> </tr> <tr> <td>“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).”</td> <td>Pass an https link, a local path, or no <code dir="auto">url</code></td> </tr> <tr> <td>“Item 1: fidelity.parts img_9 is not a reference of direction “…” … Not placed.”</td> <td>Use ids of this direction’s kept references for each part</td> </tr> <tr> <td>“Item 1: Open: 2 FAILs (text-overlap, small-text), imagery far from the hero.”</td> <td>Not an error: the draft is placed and these show on its tile as still open</td> </tr> <tr> <td>“Item 1: Open: 1 FAIL (near-copy).”</td> <td>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</td> </tr> <tr> <td>“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.”</td> <td>Not an error: sent with <code dir="auto">fidelity: { blocked: "host" }</code>. To get scores next time, allow the check scripts (<a href="/docs/setup/claude-code/#allow-the-check-scripts">Claude Code setup</a>)</td> </tr> <tr> <td>“Item 1: gb-measure could not run on this host, so its tile shows no measured numbers; nothing was invented.”</td> <td>Not an error: sent with <code dir="auto">measure: { blocked: "host" }</code> and real fidelity scores</td> </tr> <tr> <td>“Item 1: screenshot taken with a host browser tool, not gb-shoot, so the tile says it is unchecked.”</td> <td>Not an error: sent with <code dir="auto">shot: "host-tool"</code></td> </tr> <tr> <td>“Skipped item 1: phoneImageUrl must be an https link to the 390 screenshot, never image bytes.”</td> <td>Upload the 390 shot with <code dir="auto">get_upload_link</code> and pass the <code dir="auto">imageUrl</code> it answers</td> </tr> <tr> <td>“Item 1: Advice: layout far from the hero (hero-led: the layout is composed from the hero and the kept references).”</td> <td>Placed. A draft takes the hero’s look, not its layout, so a far layout is advice on every board, never open; a <code dir="auto">fidelityWhy.layout</code> line is shown after it</td> </tr> <tr> <td>“Item 1: Advice: layout and density far from the hero (a sheet of panels never matches one hero shot; …).”</td> <td>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 <code dir="auto">hero-far</code> FAIL made only of those two axes is not open either</td> </tr> <tr> <td>“Item 1: placed with no fidelity, so its tile shows no match with the hero. …”</td> <td>Placed. Run gb-fidelity once and pass its object next time; do not upload fidelity.jpg</td> </tr> <tr> <td>“Item 1: placed with no refsUsed, so its tile shows no hero beside it. …”</td> <td>Placed. Pass <code dir="auto">refsUsed</code> with at least the hero next time</td> </tr> <tr> <td>“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.”</td> <td>Pass the command from <code dir="auto">export_kit</code> <code dir="auto">system</code> unchanged</td> </tr> <tr> <td>“Skipped item 1: artifactUrl must be the https link to the published system sheet.”</td> <td>Pass the system sheet’s https link</td> </tr> <tr> <td>“Skipped item 1: a system tile needs installCommand or artifactUrl (or both), from export_kit.”</td> <td>Send the install command, the sheet link, or both</td> </tr> <tr> <td>“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.”</td> <td>Send the sheet link, the kit’s files, or both</td> </tr> <tr> <td>“Skipped item 1: a slide, post, logo or brand board’s brand kit has no install command: send artifactUrl or files instead.”</td> <td>Leave <code dir="auto">installCommand</code> out on that board</td> </tr> <tr> <td>“Item 1: the hero img_… is not a hero-tier reference: pick one from search_references { heroes: true, directionId: “…” }, …”</td> <td>Pick a hero-tier hero, run <code dir="auto">reconcile_direction</code>, rebuild the draft in its look</td> </tr> <tr> <td>“Item 1: refsUsed img_9 is not a reference of direction “…” …”</td> <td>Use ids of this direction (<code dir="auto">reconcile_direction</code> lists its kept references)</td> </tr> </tbody> </table> <p>Next: <a href="/docs/reference/tools/arrange-canvas/"><code dir="auto">arrange_canvas</code></a>.</p> </div><footer class="sl-flex astro-ddtxxk7k"><div class="meta sl-flex astro-ddtxxk7k"></div><div class="pagination-links print:hidden astro-b5raizh3" dir="ltr"><a href="/docs/reference/tools/get-snapshot/" rel="prev" class="astro-b5raizh3"><svg aria-hidden="true" class="astro-b5raizh3 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-b5raizh3">Previous<br class="astro-b5raizh3"><span class="link-title astro-b5raizh3">get_snapshot</span></span></a><a href="/docs/reference/tools/get-upload-link/" rel="next" class="astro-b5raizh3"><svg aria-hidden="true" class="astro-b5raizh3 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-b5raizh3">Next<br class="astro-b5raizh3"><span class="link-title astro-b5raizh3">get_upload_link</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>