Hosted tool guide
The hosted tools reference is generated from the application’s tool registry and answers which tools exist, which a connection lists, and which can spend money. This page answers how to call them. Every parameter below is taken from the tool’s registered input schema, so the types, bounds, defaults, and required-ness are the ones the server enforces.
The page is in two parts. Part 1 covers the 17 tools a connection lists when it names no profile: those are enough for almost every request. Part 2 covers the other 28, which stay callable by their exact name.
How to read this page
- Required means the schema has no default and the field is not optional. A missing required field fails validation before the tool runs.
- Every string bound is a character count. Every numeric bound is inclusive.
- Unknown fields are rejected. Every hosted input schema is strict, so a misspelled field fails validation instead of being silently ignored. That matters most on paid tools.
- Tools that write take an
idempotencyKeyof 8–200 characters. Reuse it only when repeating the identical request; a changed intent needs a new key. - Every tool that writes, imports, or generates needs an explicit
destinationorcanvasId. There is no shared fallback canvas any more: the Agent Canvas is retired, and"agent-canvas"is refused with a message telling you to create a task canvas. Create one withcanvas_createand reuse its handle for the whole task.
What a failure looks like
A failed call returns an MCP error result whose text is a JSON object:
{
"error": {
"code": "insufficient_scope",
"message": "Reconnect Gavana with the required permission: job:manage.",
"status": 403
}
}It can also carry fields (which inputs failed validation, and why), details (structured context such as which node conflicted or which findings blocked a write), and requestId.
code or status | Means | Do |
|---|---|---|
400, message “The Gavana tool input is invalid.”, with fields | The input failed the schema: a missing field, a value out of range, an unknown field | Fix the named fields. Nothing ran. |
insufficient_scope (403) | The connection lacks a permission the tool needs. The result also carries an OAuth challenge naming it | Reconnect with that permission. Nothing ran. |
toolset_not_enabled (400) | The connection URL withheld this tool, through toolsets, excludeTools, or a profile | Use a connection that includes it. Reconnecting the same URL will not help. |
rate_limited (429) | Too many tool calls on this token | Wait the number of seconds in the message. |
404, “Unknown Gavana tool” | No hosted tool has that name | Check the spelling against the hosted tools reference. |
invalid_tool_output (502) | Gavana produced a result that failed its own output contract. The action may already have completed | Read the handles in details before considering any retry. |
Scope, gating, and validation refusals happen before the tool runs, so a refused call never starts paid work.
Queued progress and nextAction
Image generation returns as soon as the work is queued. Any result whose status is still pending, preparing, queued, running, finalizing, or canceling carries a nextAction naming the tool and arguments to call next, for example:
{ "nextAction": { "tool": "get_image_run", "arguments": { "runId": "run:9f3a2b" }, "reason": "Work is still in progress. Read this handle again; do not start another paid generation." } }Follow it, even when it names a tool the connection does not list. If the connection cannot call the status tool at all, the result carries continuation: { "available": false, ... } instead: keep the handle and stop.
Seven tools can incur provider cost: generate_image_in_canvas, edit_image_in_canvas, generate_product_photoshoot_in_canvas, generate_video, run_canvas_workflow, recipe_run, and work_execute. Get explicit approval in the current turn before calling one, and never retry one automatically after a failure.
Part 1 — the 17 listed tools
guide_get
Read the optional Gavana Canvas Agent Guide: the topic list, one topic, or a ranked search.
Read-only. Requires no scope. No provider cost.
The guide is help, not a procedure to run before every call. A simple read, save, edit, or single image needs no guide. When the person’s request and a guide default disagree, the request wins.
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
guideId | string, 1–600 chars | No | A topic ID such as existing-canvases, an exact gavana://guides/canvas/v1/... URI, or index. Omitted means the index. |
query | string, max 240 chars | No | Search instead of reading one topic. Returns ranked topic IDs. |
limit | integer, 1–10 | No, defaults to 10 | Only valid together with query. |
Pass guideId or query, never both. A call with query is the same request as the older guide_search, so a connection that excluded guide_search refuses it with toolset_not_enabled.
What it returns
A topic:
{
"id": "paid-action-safety",
"title": "Paid Action Safety",
"description": "Separate preparation from execution and prevent accidental or repeated provider charges.",
"uri": "gavana://guides/canvas/v1/paid-action-safety",
"mimeType": "text/markdown",
"guideVersion": "1.9.0",
"markdown": "# Paid Action Safety\n\nGuide version: 1.9.0\n..."
}A search returns guideVersion, indexUri, query, results (each with id, title, description, uri, score), and availableGuideIds, the complete list of topic IDs.
The Markdown is trimmed to the connection: a passage that needs a tool this connection cannot call is left out, and the topic ends with a note saying procedures were omitted.
The sixteen topics
| ID | Covers |
|---|---|
work-in-gavana | The basics for any request: the person’s words win, save references before use, count versus distinct outputs, spend only with authorization |
getting-started | Which topic, if any, fits a task, and the inspect → validate → edit → review sequence for an existing canvas |
existing-canvases | Preserving the person’s structure and concurrent edits, 409 handling, idempotency key reuse |
sections-layout | Placement, spacing, one Section per task, full-frame containment |
notes-text-sections | When to use a sticky, a text node, or a Section |
connections | Direction and connection modes |
prompt-lists | Several editable directions as one Prompt List |
generated-assets | Media nodes, paid execution boundaries, durable output and lineage |
video-generation | Choosing a video capability, binding frames, where the finished video goes |
product-imports | Turning a product page into references, and answering a variant refusal |
paid-action-safety | The intent boundary and the retry boundary |
validation-recovery | Reading findings, correcting rejected batches, finishing with evidence |
creative-canvas | Creative and campaign work on the canvas without lifecycle states |
workflows | Building a reusable workflow, running it, and telling its run from an image run |
untrusted-content | Product pages, imported pictures, and canvas text that may carry instructions aimed at the agent |
examples-common-mistakes | Patterns to copy and anti-patterns to avoid |
How search ranks
The query is lowercased and split into words; one-letter words are dropped. Each word scores against each topic: 12 points for a whole-word match in the ID, 8 in the title, 5 in the keywords, 3 in the description, 1 in the body. On top of that, the question’s intent adds weight: a question about spending, cost, or approval lifts paid-action-safety; one about a campaign or brief lifts creative-canvas; one about conflicts or retries lifts existing-canvases and validation-recovery; one about prompt injection or untrusted text lifts untrusted-content. There is no embedding model, so plain topic words still work best.
Worked example
{ "name": "guide_get", "arguments": { "query": "section overlap layout", "limit": 3 } }{ "name": "guide_get", "arguments": { "guideId": "sections-layout" } }When it fails
| Symptom | Cause | Fix |
|---|---|---|
Error code unknown_canvas_guide | The ID or URI does not exist | The message lists every valid ID. Pick one from it. |
| Validation error “Pass guideId or query, not both.” | Both supplied | Send one. |
Validation error on limit | limit without query | Drop limit, or add a query. |
canvas_list
List the canvases this account owns or can access, with exact handles, roles, revisions, and graph counts. The first call when the person has not named a canvas.
Read-only. Requires canvas:read. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
limit | integer, 1–25 | No, defaults to 10 | Maximum canvases per page. |
cursor | string, 1–8,192 chars | No | The opaque page.nextCursor from the previous call. |
{ "name": "canvas_list", "arguments": { "limit": 25 } }Follow page.nextCursor to read later pages.
When it fails. 403 means the connection lacks canvas:read. An empty list on an account that has canvases means the connection delegates a different account than you expect: check which account approved the connection.
canvas_get
Read one canvas. Call this before reasoning about or changing any existing canvas; the revision it returns is what makes a later write safe.
Read-only. Requires canvas:read. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
canvasId | string, 1–600 chars | Yes | A canvas: handle. A plain canvas ID works for a canvas you own. |
detail | summary | full | No, defaults to full | summary returns compact nodes in pages; full returns complete node metadata. |
nodeIds | array of 1–100 IDs | No | Read only these nodes and the connections touching them. |
offset | integer, 0 or more | No, defaults to 0 | Page start for summary. |
limit | integer, 1–100 | No, defaults to 50 | Page size for summary. |
includeActivity | boolean | No, defaults to false | Include the canvas history. Only allowed on an unfiltered full read. |
The default call returns the complete graph without history. On a large board, browse with detail: "summary", then read the nodes you care about with detail: "full" and nodeIds.
A summary or filtered read carries a readContext with graphComplete: false, the revision, totals, nextOffset for the next page, and any missingNodeIds. A partial read is not the whole graph: validate a spatial change against the server, not against a page you read.
Every canvas_get result carries url, a verified browser link to the canvas. Give that to the person; there is no need for a second call.
When it fails. 404 means the handle is wrong; take it from canvas_list. A validation error “History requires an unfiltered full Canvas read.” means includeActivity was combined with summary or nodeIds.
canvas_create
Create an empty private canvas for one task and return its handle, initial revision, and browser link.
Not read-only. Requires canvas:read and canvas:write. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
title | string, 1–160 chars | Yes | A short name, in the person’s language. |
idempotencyKey | string, 8–200 chars | No | Recommended. Reusing it with the same title and workspace returns the original canvas instead of making a second one. |
workspaceId | string, 1–180 chars | No | Defaults to the personal workspace. A shared workspace requires editor membership. |
id | string, 1–180 chars | No | Explicit canvas ID, for compatibility. Cannot be combined with idempotencyKey. |
{
"name": "canvas_create",
"arguments": { "title": "Spring launch — hero images", "idempotencyKey": "spring-launch-hero-2026-10-05" }
}Keep the returned canvas.handle and use it as the destination or canvasId of every later save, edit, import, and generation in the task. One task, one canvas: never create a canvas per operation. New canvases are private, even in a shared workspace.
When it fails. Changing the title or workspace while reusing a key is rejected as a conflict: the key already names a different canvas. Supplying both id and idempotencyKey fails validation.
canvas_validate
Lint a canvas, review the nodes one task touched, or dry-run a proposed batch against the real server-side engine without applying it. The most useful tool on the hosted surface, and the one most often skipped.
Read-only. Requires canvas:read. No provider cost. Validation never mutates the canvas and never consumes an idempotency key.
| Parameter | Type | Required | Notes |
|---|---|---|---|
canvasId | string, 1–600 chars | Yes | A canvas: handle. |
operations | array of objects, max 200 | No | Proposed canvas_apply_batch operations. Their presence switches the tool into dry-run mode. |
baseRevision | string, 1–200 chars | No | The revision you read. If the canvas has moved on, validation returns 409 instead of judging a stale proposal. |
nodeIds | array of 1–200 IDs | No | Scope the review to the nodes this task touched. Findings on other work become advisory. |
expectedOutputNodeIds | array of 1–200 IDs | No | Every output node the task promised, including ones that do not exist yet, so a missing output is reported. |
nodeIds and expectedOutputNodeIds belong to a review of the current canvas; combining them with operations is refused, because a dry-run derives its own scope.
What it returns
{
"guideVersion": "1.9.0",
"scope": "current",
"canvas": { "handle": "canvas:abc123:brand-refresh", "revision": "rev_00291", "nodeCount": 34, "connectionCount": 21 },
"summary": { "errors": 0, "warnings": 2, "info": 1, "truncated": false, "passed": true, "reviewRequired": true },
"findings": [
{
"code": "node_overlap",
"severity": "warning",
"message": "node:a1b2 overlaps node:c3d4.",
"nodeHandles": ["node:a1b2", "node:c3d4"],
"guideUri": "gavana://guides/canvas/v1/sections-layout"
}
],
"completionReview": { "status": "ready", "doneClaimAllowed": true, "scope": "canvas", "...": "..." }
}A dry-run adds currentCanvas, proposal (the graph the operations would produce), and destructiveImpact.
Reading the summary. passed means zero errors and nothing more. reviewRequired is true when there are errors, warnings, or truncated findings: treat it as “look before writing”. truncated means a code hit its cap of 50 findings, or overlap analysis gave up on a very large or spread-out canvas; truncatedCodes names which.
completionReview is the field that decides whether work may be called done. doneClaimAllowed is true only when no blocking finding remains and every generated output in scope is delivered: none pending, failed, missing, or without a stored result. It also reports outputs (counts and handles), delivery, layout, and productFidelity, and says plainly that a structural check is not a visual review. With nodeIds, the review is scoped to the task and other sessions’ work does not block it.
Finding codes
| Code | Severity | Means |
|---|---|---|
invalid_node_geometry | error | Position or size is non-finite, non-positive, or out of range (coordinates within ±10,000,000; width and height up to 10,000). |
broken_connection | error | A connection points at a node that does not exist. |
unclear_connection | error, warning, or info | A self-connection, a frame edge that does not run image → video, a Section used as a workflow endpoint, or two media nodes joined with no mode. |
duplicate_connection | warning | Two visible connections share source, target, and mode. |
node_overlap | warning | Two ordinary nodes overlap. Blocks the write when your batch causes it. |
section_overlap | warning | Two Sections intersect without one fully containing the other. |
section_content_overflow | warning | A node’s frame escapes the Section that contains it. Blocks the write when your batch causes it. |
unsectioned_node | info | An agent-created node sits outside every Section. Put each task’s nodes in a titled Section of your own. |
malformed_section | error | A node marked as a Section is not a text node of at least 200 × 160. |
fake_section_header | warning | A wide or large-font text node with no connections is imitating a Section header. |
unconnected_generated_output | warning | A generated image or video has no incoming relationship or output parent. |
orphan_media_placeholder | warning | An empty media node with no relationship to anything. |
broken_generated_lineage | error | A lineage field points at a node that is not on the canvas. |
unused_product_reference | warning | An imported exact product reference that no generated output on the canvas used. Prompt-only output is not the exact product. |
proposed_destructive_change | warning | Dry-run only: the batch deletes a node or connection, and the message says how many connections go with a node. |
Every finding carries a guideUri pointing at the topic that explains the rule. A finding may also carry blocksWrite (the batch would be refused) or blocksCompletion (done may not be claimed while it stands).
destructiveImpact
The deletion summary to show a person before applying anything: deletedNodeHandles, deletedConnectionHandles, mediaNodeHandles (image or video nodes), generatedNodeHandles (nodes produced by a generation, an Action, or a variation: work that cost something to make), and findings. A non-empty generatedNodeHandles deserves an explicit confirmation, not a summary line.
When it fails
| Symptom | Cause | Fix |
|---|---|---|
409 | The canvas changed after baseRevision | Read it again, rebase your operations, and re-validate. |
400 “Affected node was not found on this canvas.” | A nodeIds entry is not on the canvas | Use expectedOutputNodeIds for outputs that do not exist yet. |
400 “Use scoped review separately from proposed operation validation” | nodeIds or expectedOutputNodeIds combined with operations | Make two calls. |
Validation error on operations | More than 200 | Split the work. 200 is the cap on validate and apply. |
The full sequence is on Validate a batch before applying.
canvas_apply_batch
Apply related node and connection operations atomically against one exact canvas revision. The way the hosted server edits a canvas graph.
Not read-only. Annotated destructive. Requires canvas:read and canvas:write. No provider cost: a batch never starts generation.
| Parameter | Type | Required | Notes |
|---|---|---|---|
canvasId | string, 1–600 chars | Yes | A canvas: handle. |
idempotencyKey | string, 8–200 chars | Yes | One key per intended payload. |
operations | array of objects, 1–200 | Yes | The batch. Shapes below. |
baseRevision | string, 1–240 chars | No | The revision you read. Omit it only for a canvas you just created; otherwise you lose conflict detection. |
force | boolean | No, defaults to false | Apply even when the batch causes error-severity findings. Only after canvas_validate, and only when the person explicitly accepts the listed findings. |
Atomic means all or nothing: if one operation is rejected, the canvas is untouched.
Operation shapes
The engine accepts eight operation types. Full field schemas are on the Canvases API resource.
type | Required fields | Optional |
|---|---|---|
canvas.update | — | title (max 160), backgroundMode (dots | lines | blank), showImageInfo, viewport |
node.create | node | clientId |
node.update | nodeId, patch | — |
node.move | nodeId, position | — |
node.resize | nodeId, width, height | — |
node.delete | nodeId | — |
connection.create | connection, or both from and to | clientId, mode |
connection.delete | connectionId | — |
A node is image, video, text, or sticky, with title (max 160), position, width and height (each 40–10,000), and metadata. A connection’s mode is list, reference, first-frame, last-frame, or prompt; omit it for a plain dependency flow. Node references accept node:<id>, a bare ID, or client:<clientId> for a node created earlier in the same batch.
What it returns
A receipt, not the canvas:
{
"wrote": true,
"replayed": false,
"canvas": { "handle": "canvas:abc123:brand-refresh", "revision": "rev_00292", "title": "Brand refresh", "nodeCount": 37, "connectionCount": 22 },
"resolvedIds": { "brief": "node:k2m4" },
"changedNodeIds": ["node:k2m4"],
"deletedNodeIds": [],
"changedConnectionIds": [],
"deletedConnectionIds": [],
"validation": { "summary": { "errors": 0, "warnings": 0, "reviewRequired": false }, "...": "..." }
}resolvedIds maps each clientId to the handle it became. replayed: true means this key already applied this payload and nothing new was written. validation is scoped to the nodes and connections this batch changed. Read the canvas with canvas_get when you need the graph itself.
Rules the engine enforces
- Media is server-owned. You cannot write image or video bytes, storage keys, or media URLs into
metadata.content. Usesave_image_to_canvasor a generation tool. - A Section is a text node with
metadata.isSection: true, at least 200 × 160, and its children’s full frames inside its bounds. Membership is recomputed by the server after every batch. - Your batch may not create overlap or Section overflow. When the operations would make new nodes overlap, or push a node’s frame out of its Section, the batch is refused without writing. Historical findings elsewhere on the canvas stay advisory and do not block an unrelated edit.
When it fails
| Symptom | Cause | Fix |
|---|---|---|
409 | Revision conflict | Re-read, rebase around the concurrent change, retry. Never resolve it by dropping baseRevision. |
422 “The batch was not applied: N error-severity validation finding(s) block this write.” | Your operations would cause blocking findings; details.blockingFindings lists them | Fix the listed operations and confirm with canvas_validate. Pass force: true only when the person explicitly accepts them. |
| Operation rejected, nothing applied | A malformed operation | Fix the named operation. Do not re-send the batch minus the failure unless that is genuinely the intent. |
Rejected for metadata.content | Media content on an image or video node | Use save_image_to_canvas or generate_image_in_canvas. |
get_canvas_image
Read one image node and return an inline preview the model can look at, plus a temporary full-resolution link.
Read-only. Requires canvas:read. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
canvasId | string, 1–600 chars | Yes | A canvas: handle. |
nodeId | string, 1–600 chars | Yes | A node: handle or plain node ID. |
Returns the node handle, asset ID, title, media type, width, height, a scoped previewUrl, and previewExpiresInSeconds, plus the picture inlined as WebP (longest edge 2,048 px, quality 88; retried at 1,536 px and quality 72 if it exceeds 5 MB). If the picture cannot be inlined, the result carries an image_preview_not_inlined notice and the preview link instead; the image itself is fine.
The token in the preview URL makes it a credential until it expires. Do not paste it into a shared document, a ticket, or a log. To show a person the image, give them the canvas url from canvas_get.
| Symptom | Cause | Fix |
|---|---|---|
400 “not an image” | The node is text, sticky, or video | Read the canvas and pick an image node. |
409 “does not have a stored result” | An empty placeholder: generation unfinished or never started | Check the run. Do not start a generation to work around it. |
413 | Source over 50 MB, or the preview still over 5 MB | Use the full-resolution link. |
415 | Stored bytes are not PNG, JPEG, WebP, or GIF | Report it. |
save_image_to_canvas
Put one existing image on a canvas as a durable image node and return its node: handle — or, given a product page, import that product’s verified gallery as references. This imports; it never generates or edits.
Not read-only. No provider cost. Requires canvas:read, canvas:write, asset:read, and image:generate for a single image. A productPageUrl import is authorized as import_product_reference_pack and needs canvas:read, canvas:write, and asset:read.
A single-image save needs image:generate even though it generates nothing: that permission governs writing image bytes into Gavana storage. A connection with canvas:write alone cannot save an image.
Parameters
Name exactly one source: image, imageUrl, assetId, or productPageUrl.
| Parameter | Type | Required | Notes |
|---|---|---|---|
image | object | One source | A file the client hands to the tool: download_url (URL, max 4,096), file_id (1–1,000), optional mime_type and file_name. Prefer it when the client has the file. |
imageUrl | HTTPS URL, max 4,096 | One source | A public image URL. |
assetId | asset: handle | One source | An image already uploaded to Gavana, for example with gavana asset upload <path> on the person’s machine. |
productPageUrl | HTTPS URL, max 4,096 | One source | A product page. Imports its verified gallery into one Product References Section. |
variantSelector | string, 3–300 chars | No | Product pages only. One exact attribute=value selector as the page spells it. |
imageUrls | array of 1–12 HTTPS URLs | No | Product pages only. The exact product photographs, when you can identify them. Skips page discovery. Do not combine with variantSelector. |
destination | string, 1–600 chars | Yes | The task’s canvas handle. |
idempotencyKey | string, 8–200 chars | Yes | |
title | string, 1–160 chars | No | Defaults to Saved image, or Product References for a product page. |
background | auto | transparent | opaque | No, defaults to auto | Set transparent whenever the person asked for a removed background: Gavana refuses an image without real alpha pixels. Single images only. |
x, y | number, −100,000 to 100,000 | No | Position for a single image. A product import places its own Section. |
Accepts PNG, JPEG, WebP, and GIF up to 50 MB, verified by sniffing the bytes. A larger, undecodable, or contract-breaking source is refused without writing.
A product page
When the page proves the product (and, if there are several, the variant), the result lists each imported node handle with a preview, and the pictures come back inline so the model can look at them. Look at them before generating: an image count is not visual inspection. These photographs are references, not the deliverable: to make new product photos, generate from the returned handles.
When Gavana cannot prove the product or variant, it returns review_required with the rejected candidates or the valid selectors, and writes nothing. Answer with the variant or the exact imageUrls, and do not generate that product until an import succeeds.
Worked example
{
"name": "save_image_to_canvas",
"arguments": {
"imageUrl": "https://example.com/hero-draft.png",
"destination": "canvas:abc123:product-shots",
"title": "Hero draft — warm editorial",
"idempotencyKey": "hero-draft-2026-10-05-01"
}
}Keep the returned node: handle: it is what generation takes as a reference or a source, and what generate_video takes as a firstFrame. The full flow is on Save an image and use it.
| Symptom | Cause | Fix |
|---|---|---|
| Validation error “Name exactly one source…” | None, or more than one, of the four sources | Send exactly one. |
| Validation error “variantSelector and imageUrls belong to a productPageUrl source.” | Product fields on a single-image save | Drop them, or use productPageUrl. |
insufficient_scope | Almost always image:generate on a single save | Reconnect with full access. |
review_required, nothing written | The page did not prove the product or variant | Pass the selector or imageUrls it asks for. |
model_list
Find accessible image or video models and their exact handles, capabilities, and parameters.
Annotated read-only, free. Requires image:generate, or video:generate when capability is a video capability.
| Parameter | Type | Required | Notes |
|---|---|---|---|
query | string, max 240 chars | No | The model or provider the person named, for example Seedance 2. |
capability | enum | No, defaults to image.generate | image.generate, image.edit, image.variations, video.generate, video.generate.fromImage, video.generate.fromFrames, video.generate.fromReferences. |
limit | integer, 1–100 | No, defaults to 25 | |
cursor | string | No | Next page. |
A video capability is the same request as the older find_video_models, so it is authorized as that tool. Match the capability to the inputs you will pass: if a first frame is required, ask for video.generate.fromImage.
{ "name": "model_list", "arguments": { "query": "Seedance", "capability": "video.generate.fromImage", "limit": 5 } }Use a returned model: handle verbatim. For an image, omit model in generation to use the configured default. A model the person named must be the one used: if it is not returned, say so instead of substituting.
generate_image_in_canvas
Create image-generation targets on a canvas and queue the provider. Also edits an explicit source with operation: "edit", and makes several different outputs in one call with items.
This can incur provider cost. A direct request to make or edit images authorizes that one job. A repeated request is not new authorization, even right after you offered a retry. Never retry a failed call on your own.
Not read-only. Requires canvas:read, canvas:write, asset:read, image:generate, and job:manage, plus element:read when elements is set. operation: "edit" is authorized as edit_image_in_canvas.
Parameters
| Parameter | Type | Required | Notes |
|---|---|---|---|
destination | string, 1–600 chars | Yes | The task’s canvas handle. |
idempotencyKey | string, 8–200 chars | Yes | One key per intended paid job. |
prompt | string, 1–8,000 chars | One of prompt, promptNodeId, items, requestContract | One complete image. A prompt asking for several outputs, or containing a URL, is refused. |
promptNodeId | node handle | A text or sticky node whose content is the prompt. | |
items | array of 1–4 objects | Different outputs in one call. See below. | |
count | integer, 1–4 | No, defaults to 1 | Separate images of the same prompt. Each one costs. |
operation | generate | edit | No, defaults to generate | edit derives a new output from an explicit source and keeps the source. |
source | node: or asset: handle | For edits | The image being edited. Sent to the model first, as Image 1. |
references | array of 1–16 | No | Extra guidance. A handle, or { handle, role } with role identity, construction, texture, fit, style, or source. |
changeRegions | array of 1–8 rectangles | No | Normalized { x, y, width, height } (0–1) areas that may change; everything else keeps the source’s pixels. Requires a declared source. |
elements | array of up to 8 | No | Version-pinned element:<id>@v<n> handles, or objects with role, influence (0–1), applicationMode, and placements (required for exact Elements). Share the 16-image reference limit. |
requirements | object | No | count, aspectRatio (such as 9:16), composition, panels (1–16), text (none | specified | unspecified), copy (max 2,000), language. |
composition | single-frame | comparison | grid | No | Panels inside each image. Not the same as count. |
preserve, changes, forbiddenAdditions | arrays of up to 32 strings | No | What must stay, what may change, what must not be added. |
originalWording | string, 1–8,000 chars | No | The person’s full request, kept for review. |
requestContract | object | No | A revised request from revise_image_request. Starting it is a new paid run and needs a new key. |
model | string, 1–600 chars | No | A model: handle from model_list. Omit to use the configured default. |
size, quality | strings, 1–80 chars | No | |
title | string, 1–160 chars | No, defaults to Generated image | |
targetNodeId | node handle | No | An existing empty image node to fill. Only with a count of 1. |
preflight | boolean | No, defaults to false | Validate references and effective settings without creating nodes or starting paid work. Needs an existing canvas and targetNodeId (or items). |
wait | boolean | No, defaults to false | Block until the image is durable. |
waitSeconds | integer, 1–50 | No, defaults to 45 | How long wait blocks. |
Pass every aspect ratio the person states as requirements.aspectRatio or an item’s aspectRatio. Writing it only into the prompt does not set it.
count versus items
countrepeats one prompt: four variations of the same idea.itemsmakes different outputs — scenes, hooks, subjects, ratios — each with its own prompt. Each item is{ prompt, aspectRatio?, composition?, label? }and runs as its own one-image job; references, Elements, model, and destination apply to all. Withitems, omitprompt,promptNodeId,count,targetNodeId, andrequestContract.
Before anything is written or charged, every node: reference is checked to be a durable image and every item is dry-run by the server. A repeated item, or an item whose prompt states a ratio it does not pass, refuses the whole call.
{
"name": "generate_image_in_canvas",
"arguments": {
"destination": "canvas:abc123:spring-launch",
"idempotencyKey": "spring-scenes-2026-10-05-01",
"references": [{ "handle": "node:bag7k2", "role": "identity" }],
"items": [
{ "prompt": "The bag on a sunlit café table, morning light", "aspectRatio": "4:5", "label": "Café" },
{ "prompt": "The bag on a train seat, soft window light", "aspectRatio": "4:5", "label": "Commute" },
{ "prompt": "The bag on a beach towel, late afternoon", "aspectRatio": "9:16", "label": "Beach story" }
],
"originalWording": "Make 3 scenes of this bag: café and commute in 4:5, beach as a 9:16 story."
}
}What it returns
By default, queued progress, immediately: the run handle, waited: false, and destination with the canvasId and the targetNodeIds where the images will land, plus a nextAction pointing at get_image_run. Report that the work is queued, then follow nextAction.
With wait: true, the call blocks up to waitSeconds. If the wait runs out, the result says waitTimedOut: true; the job is still running.
A call with items returns one entry per item in items, their run handles in runs, and:
| Field | Means |
|---|---|
startedGeneration | At least one item was newly submitted by this call. |
replayed | Every item was already submitted under this key; nothing new started. |
doneClaimAllowed | Every item’s output is delivered. Only then may the images be called done. |
unavailableOutputs | A replayed item finished earlier and its image is not in this result: read its run. |
incomplete, uncertain, notAttempted | Submission stopped early. An uncertain item may already be running and charged; repeat the same call with the same key to observe it. notAttempted items were not submitted by this call. |
waitError | A progress check failed after submission. Read the runs; do not regenerate. |
When it fails
| Symptom | Cause | Fix |
|---|---|---|
| Validation error “Describe one complete image only.” | The prompt asks for several images | Use count for repeats or items for different outputs. |
| Validation error “Do not put URLs in image prompt prose.” | A URL in the prompt | Save the image or product page with save_image_to_canvas and pass its node handle. |
Validation error on items[n].aspectRatio | The item’s prompt or the original wording states a ratio it does not pass | Pass that ratio. |
| Validation error “changeRegions requires a declared source” | Regions without a source | Pass source, or a reference with role: "source". |
400 “An edit requires an explicit source reference.” | operation: "edit" without a source or references | Pass the image being edited. |
product_variant_mixed | References from one product page are from different variants | Use one variant’s references. Nothing was written or charged. |
| Terminal provider failure | The provider rejected or failed the job | Report it and stop. Ask before any new attempt. |
get_image_run
Check an image run, reconcile its state, and return its saved outputs.
Not read-only: it may finalize or repair saved canvas attachments, update node status, and acknowledge completed jobs. Use run_snapshot to observe without those effects. Requires job:manage. No provider cost: checking never starts generation.
| Parameter | Type | Required | Notes |
|---|---|---|---|
runId | string | Yes | The run: handle a generation returned, or the generationRunId an image node carries. Both forms work. |
includeImage | boolean | No, defaults to false | Inline the finished picture. Off because this tool is polled; the response always carries the saved asset and a preview link when available. |
Call it while the status is still active, following nextAction. A handle starting import: is refused with an explanation: an imported picture was uploaded, not generated, and has no run.
When it fails. 400 “not an image generation” means the handle belongs to a workflow run or a video job; use the tool that started it.
list_image_runs
List the image and Action runs this account has started, newest first, with status and canvas.
Annotated read-only, free. Requires job:manage.
| Parameter | Type | Required | Notes |
|---|---|---|---|
status | active | all | No, defaults to active | active returns only queued or running runs. |
canvasId | canvas handle | No | Only runs targeting this canvas. |
limit | integer, 1–50 | No, defaults to 20 |
Use it to answer “how is that going?” in a fresh session, to recover a run handle you no longer have, and to see which runs are holding the concurrent-job limit. Find the existing run before you ever consider starting another.
generate_video
Start a video generation with an exact connected model.
This can incur provider cost, usually the highest on the platform. Explicit current-turn approval only. No automatic retries.
Not read-only. Requires canvas:read, canvas:write, asset:read, video:generate, and job:manage.
| Parameter | Type | Required | Notes |
|---|---|---|---|
model | string, 1–650 chars | Yes | A model: handle from model_list with a video capability. Not shape-checked, so a guessed value fails later and less clearly. |
prompt | string, 1–8,000 chars | Yes | |
destination | string, 1–600 chars | Yes | The canvas whose nodes may be used as frames and references. |
idempotencyKey | string, 8–200 chars | Yes | |
aspectRatio, resolution | strings, 1–40 chars | No | |
durationSeconds | integer, 1–120 | No | Longer usually costs more. |
generateAudio | boolean | No | |
firstFrame | image reference | No | A node: handle, an asset: handle, or a public HTTPS image URL. |
lastFrame | image reference | No | Requires firstFrame. |
references | array of up to 9 image references | No | Duplicates are rejected. |
waitSeconds | integer, 1–50 | No, defaults to 45 | How long the call waits before returning a resumable job: handle. |
The finished video is not added to the canvas. It is returned as a protected Gavana link in the job’s result. Give the person that link; do not look for it on the board.
To start from an image in the conversation, save it with save_image_to_canvas first, then pass the returned node handle as firstFrame and the same canvas as destination.
{
"name": "generate_video",
"arguments": {
"model": "model:seedance-2-pro",
"prompt": "Slow push in, warm afternoon light, no camera shake.",
"destination": "canvas:abc123:product-shots",
"firstFrame": "node:img8q4",
"durationSeconds": 6,
"idempotencyKey": "hero-video-2026-10-05-01"
}
}On a still-running job you get a job: handle and a nextAction naming get_video_job. Never re-call generate_video to check on it.
| Symptom | Cause | Fix |
|---|---|---|
Validation error on firstFrame | lastFrame without firstFrame | Supply both or neither. |
Validation error on references | Duplicates | Deduplicate. |
| Provider rejects the model | A guessed handle, or the wrong capability | Call model_list with the right video capability. |
| Terminal failure | The provider failed the job | Report it and stop. |
get_video_job
Check a video job and persist its latest status.
Not read-only: it polls the provider and stores what it learns. run_snapshot reads the stored state without polling. Requires job:manage. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
jobId | job: followed by a UUID | Yes | Exactly the handle generate_video returned. |
A succeeded job returns its protected Gavana video link. 400 “not a video generation” means the handle belongs to an image job. If a job never leaves queued, report the state; do not start a second video.
element_list
Search the account’s reusable visual Elements.
Read-only. Requires element:read. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
query | string, max 240 chars | No | |
state | active | archived | No | |
limit | integer, 1–100 | No | |
cursor | string | No | Next page. |
Each result carries its current version-pinned handle, element:<id>@v<n>. That exact handle is what element_get reads and what generation’s elements field takes.
element_get
Read one exact, immutable Element revision.
Read-only. Requires element:read. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
elementId | element:<id>@v<n> | Yes | A version-pinned handle from element_list or element_history. |
Read the Element before applying it, and pass its exact handle to generation.
element_create
Create a reusable visual Element from existing image assets, guidelines, or both.
Not read-only. Requires element:read and element:write. No provider cost.
| Parameter | Type | Required | Notes |
|---|---|---|---|
name | string, 1–160 chars | Yes | |
type | enum | Yes | character, product/object, environment, style, material/texture, lighting, brand/mark. |
sourceAssetIds | array of up to 8 asset: handles | No | |
guidelines | string, max 2,000 chars | No | At least one source asset or guideline is required. |
applicationMode | creative | identity | exact | No | creative inspires; identity keeps a recognizable subject; exact composites one transparent PNG source onto the output and verifies its transparency. |
collectionIds | array of up to 24 element-collection: handles | No |
Creating an Element does not cut out or extract its subject. element_create takes no idempotency key, so a repeated call makes a second Element: check element_list before creating again.
Part 2 — callable but not listed
These 28 tools answer to their exact name on every connection whose scopes and gating allow them, but a connection that names no profile does not list them. A connection with ?profile=advanced lists all of them; ?profile=creative lists the ones its profile allows. The hosted tools reference has the per-tool table.
Superseded by a listed tool
Each of these still works, and each request is now also accepted by a listed tool. Prefer the listed one for new work.
| Tool | Use instead | Notes |
|---|---|---|
guide_search | guide_get with query | query (max 240, default ""), limit (1–10, default 10). No scope. |
open_canvas | the url in canvas_get or canvas_create | canvasId. Returns canvasId, title, url. canvas:read. |
import_product_reference_pack | save_image_to_canvas with productPageUrl | productPageUrl, variantSelector, imageUrls, destination, title (default Product References), idempotencyKey. canvas:read, canvas:write, asset:read. Never calls a provider. |
find_video_models | model_list with a video capability | query (required, 1–240), capability (video capabilities only, default video.generate), limit (1–25, default 10). video:generate. |
edit_image_in_canvas | generate_image_in_canvas with operation: "edit" | The same parameters without operation or items. Paid. |
generate_product_photoshoot_in_canvas | save_image_to_canvas with productPageUrl, then generate_image_in_canvas with items | One call with a product page or node references and one direction per output; imports and verifies references before any paid generation. Paid. |
guide_search
Same search as guide_get with query, under the older name. See guide_get.
open_canvas
Returns a verified browser link to a canvas without modifying it. canvas_get and canvas_create now carry the same url.
import_product_reference_pack
The standalone product-page import. Behaves exactly as save_image_to_canvas with productPageUrl, including review_required with nothing written. See save_image_to_canvas.
find_video_models
The older video model search. A connection that holds video:generate but not image:generate keeps it listed, because it cannot use model_list for the same request.
edit_image_in_canvas
The older edit tool. Pass the image being edited as source; references are extra guidance; preserve, changes, and changeRegions say what may change. A new output is created and the source stays. Paid: explicit approval only.
generate_product_photoshoot_in_canvas
The older one-call product photoshoot, with unchanged behavior: a product page or durable node references, one direction object per requested output, and verified references before any paid generation. New work uses a product-page import followed by items. Paid.
Work: plan a campaign before generating
Chat-first campaign planning. work_prepare writes a brief, exactly three directions, and a recommendation to the canvas without paid generation; the person chooses; work_execute runs only the chosen direction. The step-by-step flow is on Plan a campaign with Work.
| Tool | Does | Scopes | Cost |
|---|---|---|---|
work_prepare | Creates the Work: brief, three directions, recommendation | canvas:read, canvas:write, asset:read | Free |
work_get | Reads a durable snapshot. Never polls providers or writes | canvas:read | Free, read-only |
work_continue | Answers a question, selects a direction, adjusts the brief, or acknowledges a changed canvas | canvas:read, canvas:write | Free |
work_execute | Starts the selected direction, after explicit confirmation | canvas:read, canvas:write, asset:read, image:generate | Paid |
work_refresh | Polls the provider and writes progress into the Work and canvas. Owner only | canvas:read, canvas:write, image:generate | Free |
work_prepare — request (required, 1–8,000), idempotencyKey (required), canvasId (the task’s existing canvas; omit it and work_prepare creates the task canvas itself), references (up to 12 node: or asset: handles, optionally { handle, role, description } with role identity, style, or product). Keep the returned work.canvasHandle for everything after. Then stop for the person’s choice.
work_continue — workId and idempotencyKey, plus one of:
action | Needs |
|---|---|
answer | answer (1–2,000) |
select_direction | directionId (a direction ID or direction: handle) |
adjust | adjustment (1–2,000) |
acknowledge_canvas | nothing else; or pass rebase: true on its own |
Only the field for the chosen action is accepted. It never starts paid generation.
work_execute — workId, confirm: true, and idempotencyKey. A direction must already be selected. Returns immediately with durable progress; do not retry it.
work_get, work_refresh — workId only.
run_snapshot
Read stored image, Recipe, video, or Work progress and outputs without submitting, resuming, repairing, or cancelling anything.
Annotated read-only, free. Requires job:manage; a work: handle also needs canvas:read.
| Parameter | Type | Required | Notes |
|---|---|---|---|
runId | string | Yes | A run: handle (image or Recipe), a job: handle (video), or a work: handle. |
Returns { snapshot: { version, run, type, state, outputs, warnings, permittedNextActions, observation, ... } }, where observation is always { "readOnly": true, "reconciliationPerformed": false }. Because it does not reconcile, a snapshot can lag the provider. That is the point: it is the safe way to look, and it never starts a generation. get_image_run, get_video_job, and get_canvas_workflow_run reconcile and may write.
revise_image_request
Prepare a revised version of an image run’s request without generating anything.
Annotated read-only, free. Requires job:manage.
| Parameter | Type | Required | Notes |
|---|---|---|---|
runId | image run handle | Yes | |
patch | object | Yes | At least one of requirements, preserve, changes, forbiddenAdditions, size. Only named fields change; references and other requirements stay. |
Returns requestContract, an interpretedRequest receipt, submitted: false, and paidJobsStarted: 0. To run it, pass requestContract to generate_image_in_canvas with a new idempotency key, which is a new paid job and needs the person’s approval. A run older than versioned requests returns 409.
Workflows and Recipes
Reusable workflows are retained for compatibility while the Recipe interface is unavailable in production. They are unlisted by default and need explicit approval to run. The flow is on Run a canvas workflow.
| Tool | Does | Scopes | Cost |
|---|---|---|---|
create_canvas_workflow | Writes a private reusable Recipe and a workflow card. Never starts generation | canvas:read, canvas:write | Free |
run_canvas_workflow | Runs a workflow card with only the inputs that change | canvas:read, canvas:write, asset:read, image:generate, job:manage | Paid |
get_canvas_workflow_run | Reconciles or advances a workflow run, including submitting its remaining already-authorized steps | canvas:read, job:manage | Starts nothing the run did not already authorize |
recipe_search | Searches approved Recipes; returns exact versions and declared ports | canvas:read | Free, read-only |
recipe_get | Reads one Recipe’s version, inputs, outputs, and graph | canvas:read | Free, read-only |
recipe_run | Runs an exact approved Recipe version on an explicit canvas | canvas:read, canvas:write, asset:read, image:generate, job:manage | Paid |
create_canvas_workflow — destination (required), name (1–160), description (max 1,200), category (Brand & Visual Design, Product Visualization (default), Marketing & Ads, Content Package), tags (up to 12), inputs (1–16), outputs (1–8), idempotencyKey, optional x, y. Each input: key, label, optional description, type (image | text | sticky), optional referenceRole (identity | style), sourceNodeId (an image’s fixed default), value (text or sticky only), useAsDefault. Each output: key, label, optional description, type (image | text), optional composition, prompt (1–8,000), inputKeys (1–16), optional model, size, quality. Returns the workflow with its workflowNodeId and browser url.
run_canvas_workflow — destination (required, the canvas holding the card), workflowNodeId (required), inputs (up to 16, by key, portNodeId, or label; image values are node: or asset: handles), outputMode (reuse refills existing slots and is the default; append keeps earlier outputs; the creative profile defaults to append), version, baseRevision, idempotencyKey, optional model, size, quality, waitSeconds (1–50, default 45).
get_canvas_workflow_run — runId: the run: handle, or the recipeRunId a canvas node carries.
recipe_search — query (max 240), limit (1–100, default 25), cursor. recipe_get — recipeId (recipe:<id>), optional version. recipe_run — recipeId, version (required), canvasId (required), idempotencyKey (required), inputs, outputMode (default append), baseRevision, model, size, quality. Returns a durable queued receipt.
Element administration
Housekeeping for Elements and their collections. Every one needs element:read; the ones that change anything also need element:write. None costs anything.
| Tool | Parameters | Notes |
|---|---|---|
element_history | elementId (element:<id>), limit, cursor | Immutable revisions, newest first. Read-only. |
element_update | elementId (element:<id>), name, type, sourceAssetIds, guidelines, applicationMode | Creates a new revision. Older version handles stay valid. |
element_update_collections | elementId, collectionIds (up to 24) | Replaces the Element’s memberships without a new revision. |
element_archive | elementId, confirm: true | Show the Element to the person first; confirm only after they approve. Recoverable. |
element_restore | elementId | Works while all the Element’s source assets remain. |
element_collection_list | limit, cursor | Read-only. |
element_collection_create | name (1–120) | |
element_collection_update | collectionId (element-collection:<id>), name | Renames. |
element_collection_delete | collectionId, confirm: true | Deletes the collection, not its Elements. Confirm only after the person approves. |
Not on the hosted server
Node-level graph surgery (node_*, connection_*), deterministic credit-free image Actions (action_*), image variations, Recipe forking, asset listing and upload, canvas rendering, provider listing, and job waiting and cancelling exist only on the local stdio server. See the local tools reference and Other clients.