get_upload_link
Get a signed link to upload one screenshot of a draft you built, or of your own live app for a rescue, so it can go on the board. Says how many draft screenshots the board still holds.
| Plan | Quota | Changes data | Hints |
|---|---|---|---|
| All | 48 draft screenshots per board, 3 MB each | No. The upload itself stores the screenshot | not destructive, not idempotent |
The only image GoBanana stores for you is a screenshot of your own draft. Your agent asks for a link, sends the PNG, JPEG or WebP file with curl (it needs a shell), and gets back an imageUrl to place with add_to_canvas as a build. One link per screenshot, valid for 30 minutes. No image bytes pass through the tool call.
A screenshot of your own live app, for a rescue, goes the same way. Upload it with this tool, then place it with add_to_canvas as a build with before: true (or after: true for the same screen after the clean-up) and no directionId. The imageUrl this tool answers is the only link add_to_canvas accepts for these screens. It needs no direction or kind, and uses one of the same 48 slots and the same 3 MB limit. Only screens with demo, staging or seed data, never real customer data.
Upload only the draft’s own screenshot. The check images the scripts write beside the hero (fidelity.jpg, diff.jpg, regions.jpg, hero-trimmed.png) hold the hero reference: they stay on your machine.
The reply also says how much room the board has left (one screenshot per draft, the screen; a landing page takes 2, its 390 and 1440 shots), so your agent can say so before it builds. A full board refuses the link.
A landing page uploads two screenshots, one link each: the whole page at 1440 (upload-<lang>-full.jpg) and the 390 screen (upload-<lang>-390.jpg). Both go in one build item: the 1440 shot as imageUrl, the 390 shot as phoneImageUrl.
Inputs
Section titled “Inputs”| Name | Type | Required | Limits | What it does |
|---|---|---|---|---|
canvasId |
string | Yes | 1 to 100 characters, one of your boards | The board the draft belongs to |
fileName |
string | No | 1 to 400 characters | The screenshot’s path, for a ready curl line. Its extension (.png, .jpg, .jpeg, .webp) sets the type |
contentType |
enum | No | image/png, image/jpeg, image/webp; default image/jpeg |
The type when the file name has no image extension |
Example call
Section titled “Example call”{ "name": "get_upload_link", "arguments": { "canvasId": "c3f1a0d2-6b1e-4d8a-9f4b-0a1b2c3d4e5f", "fileName": "/tmp/gb/fare/upload-en-390.jpg" }}Example output
Section titled “Example output”Upload one screenshot (PNG, JPEG or WebP, up to 3 MB; 48 per canvas) before 2026-10-30T15:40:00.000Z:Room on the board: 47 more screenshots of 48 (a screen draft takes 1, a landing page 2: its 390 and 1440 shots).curl -fsS -X PUT -H "content-type: image/jpeg" --data-binary @'/tmp/gb/fare/upload-en-390.jpg' "https://gobanana.fun/api/draft-shots?t=…"It answers JSON with imageUrl. Then call add_to_canvas with { type: 'build', imageUrl, url: <the live draft link>, directionId, title, measure: <the measure object from gb-measure's measure.json> }; a full draft also passes fidelity (the object from gb-fidelity's fidelity.json, or { blocked: 'host' } when the host refused the check scripts) and refsUsed (at least the hero: [{ part: 'hero', itemId }]). A landing page passes its 390 shot's imageUrl as phoneImageUrl in the same item.A full-page shot is fine on the board, but you only see shots up to 2000 px tall and 900 KB in tool replies: to see it there too, upload its first-screen shot (gb-shoot's 1440x900 or 390x844 view) as well.Upload only the draft's own screenshot: never fidelity.jpg, which holds the hero and stays on this machine.{ "uploadUrl": "https://gobanana.fun/api/draft-shots?t=…", "method": "PUT", "contentType": "image/jpeg", "expiresAt": "2026-10-30T15:40:00.000Z", "maxBytes": 3145728, "curl": "curl -fsS -X PUT …", "room": 47 }room is the number of screenshots left, or null when storage cannot be read. With one screenshot left, the reply adds “The board is nearly full: 1 screenshot left, room for 1 more screen draft and no landing page (it takes 2). Tell the user now.”
Messages
Section titled “Messages”| Message | Meaning |
|---|---|
| “That canvas was not found. get_canvas lists your canvases.” | Use one of your own boards |
| “Screenshot uploads are not available right now. Place the draft with its live link and say the screenshot is missing.” | Uploads are not set up on this server; place the draft with its live link |
| “This canvas already has 48 draft screenshots, the most a canvas holds. … Say so before building, so the user can pick another canvas for the next drafts.” | The board is full. A draft with a live https link can still be placed with that link; use another board for the next drafts |
| “fileName must be the screenshot’s path, up to 400 characters.” | Shorten the path |
| “contentType must be image/png, image/jpeg or image/webp.” | Use one of the three types |
The upload answers 413 for a file over 3 MB and 415 for anything that is not PNG, JPEG or WebP. Removing a draft from the board does not free its slot; screenshots are deleted with the board or with your account. See Plans.