Put results on a canvas
Lay out FLORA MCP results on a project canvas from your agent: arrange generations into a grid, add and wire image, video and text nodes, and group work into fields.
Everything your agent generates with FLORA MCP already lands on a project canvas as nodes. This recipe covers the next step: laying them out as a grid, building a small graph of wired nodes, and sorting work into named fields. Use it after Generate an image or video or Batch-generate 20 to 500 assets, or whenever you want the canvas to read like a board.
Works in: Claude · Claude Code · ChatGPT · Codex · Cursor
You need: a connected client and a project. Arranging, adding and organizing nodes cost nothing; only running generation nodes does (about $0.07 per image with Nano Banana 2).
Use when: results need a layout, or you want to set up a chain of nodes (reference → image → video) that runs together.
Don't use when: you just need the output URLs; generation already put the nodes on the canvas.
Ask your agent
In my FLORA project "Fall PDP", make 8 hero images of our walnut cutting board and lay them out in a 4-column grid. Show me the cost first and wait for my OK.
What the agent does
Generates the images with
flora_create_generations(see generate). Each response entry carries the new node'snode_id.Arranges those nodes in one
flora_arrange_canvascall.Optionally adds wired nodes with
flora_add_to_canvasand runs them withflora_run_canvas_nodes.Optionally sorts work into named fields with
flora_organize_canvas_fields.
Arrange a grid
Pass the node IDs in the order you want them placed, plus a layout. Use the node_ids saved from flora_create_generations. If they're no longer in the conversation, read flora_get_canvas and pick the results by node type (image), prompt, model and a completed status; ask the user if that still leaves doubt.
modeisrow,columnorgrid.columnsapplies to grids only and defaults to the square root of the count, rounded up.gapdefaults to 64 canvas units. Sendnode_idswithoutlayoutto tidy just those nodes instead of gridding them.IDs can be short IDs (
n12) or node UUIDs fromflora_get_canvas, thenode_idvaluesflora_create_generationsreturned, or an uploaded file's node:mcp_upload_…when it was uploaded withproject_id, or theapi_asset_…IDflora_attach_assetreturned. Never pass a bare asset ID (asset_…) or an ID you predicted; one unknown ID rejects the whole call and nothing moves.Leave out
layout.originand FLORA keeps the block where the set already is, shifted clear of other work. Pass an origin only to place it somewhere specific.layout.originis the painted top-left corner of the block (where the first box starts), not a node's position. Node positions inflora_get_canvasare anchors at the top-center of each box (groups anchor top-left). So to start a block where an existing node sits, useorigin.x = anchor x − width / 2andorigin.y = anchor y: a 384-wide node anchored atx: 0starts painting atx: -192.To line a new row up under an existing grid, set
gapto the distance between the existing column anchors minus the node width (not the default 64), and setorigin.yto continue the existing row spacing. An explicit origin can collide with other work; checkoverlapsin the response.
The response is { arranged, moved, overlaps, bounds, revision }. An empty overlaps is the only clean result. bounds is the block's box, so the next batch can go below it at origin.y = bounds.y + bounds.height + gap.
To tidy the whole canvas instead, send all: true and nothing else. That runs Tidy, the editor's own auto-layout, on every node: it follows the edges (each source sits to the left of the nodes it feeds) and keeps group members inside their frames, instead of making a grid. overlaps always comes back empty. Do this only when you ask for it, because it moves work you placed by hand:
Add and wire nodes
flora_add_to_canvas creates nodes and edges in one call. Each add entry has a type; give it a ref when an edge in the same call points at it. Each connect entry wires two nodes by short ID or ref. Edges feed one node's output into the next by media type unless you name a target input with in.
Node types you'll use most:
type
What it is
Takes
static_image
An existing image, placed as is
content_url (HTTPS)
image, video, audio
A generation node (or, with content_url, existing media)
prompt, model, params; or content_url instead
text
A text generation node (its prompt runs a text model)
prompt, model, params
notes
A note for people; never runs
text (up to 20,000 characters), size, fit_text
group
A frame other nodes can sit in
members join with group
Rules worth knowing:
prompt,modelandparamsconfigure a generation node;content_urlplaces existing media instead and can't be combined with them. Media inputs such asimage_urlcome from edges, notparams.paramsare checked against the model's schema; an invalid value rejects the whole call. Leave outmodelto use the default for that node type.3D nodes can't be created here. Generate 3D with
flora_create_generations.Leave out
positionand FLORA places new nodes below existing work.Reuse the same
idempotency_keyafter a timeout so a retry can't create duplicates.
The response's created map gives each ref its real short ID and UUID, for example "hero": { "id": "n21", "node_id": "…" }. Use those for every later call, never your refs. Warnings in the response mean part of the request was skipped (a duplicate edge, for example).
Run what you added
Adding a node never runs it. After you approve the cost, flora_run_canvas_nodes starts the nodes by short ID. Connected nodes run in dependency order, so a whole chain starts in one call (up to 50 nodes):
It spends money immediately with no confirmation step, so the agent quotes first (see cost and limits). Each entry in runs is started with a run_id to poll with flora_list_generations, or skipped with a reason. Skipped nodes aren't charged.
Sort work into fields
flora_organize_canvas_fields moves existing nodes into named fields (frames), creating a field if no top-level field has that label, and grids each one. It never recreates nodes or changes their content or edges:
Up to 50 fields and 200 nodes per call. It takes no coordinates. If it's interrupted, read the canvas with flora_get_canvas and run it again with the same labels and IDs; it reuses the frames it already made. If your connection doesn't list this tool, create an empty group node with flora_add_to_canvas, then move nodes into it with flora_update_canvas_nodes and group.
Check it worked
flora_arrange_canvasreturns an emptyoverlapsarray.flora_get_canvasshows each node'sposition,groupand edges as you expect, and a newrevision.The canvas at
canvas_urlreads as the grid or board you asked for.
If it fails
flora_arrange_canvas rejected
Both node_ids and all were sent, all with layout, or neither
Send node_ids (+ layout) or all: true alone.
Rejected with an unknown ID
A ref, a predicted ID or a bare asset_… ID was passed
Use IDs from flora_get_canvas, the created map, or an upload's node (mcp_upload_… or api_asset_…).
overlaps is not empty
The block collides with work outside it
Run again without origin, or with an origin clear of other work.
flora_add_to_canvas returns 400
The request was Mermaid or text instead of JSON arrays, or params failed the model's schema
Send add and connect as JSON, with params names from flora_list_models.
Node added but nothing happened
Adding doesn't run a node
Run it with flora_run_canvas_nodes and its short ID.
skipped with node_not_found
A ref was passed instead of a short ID
Use the id from the created map.
skipped with node_not_executable
The node is static text: it passes its text downstream and never generates
Run the generation nodes it feeds instead.
Every argument is in the canvas tools reference.
Last updated
Was this helpful?