Canvas tools
Reference for the FLORA MCP tools that read a project canvas and add, edit, wire, arrange, run and delete its nodes.
These FLORA MCP tools read and edit a project's canvas: its nodes, the edges between them, their layout, and the timeline and deck documents some nodes carry. Read the canvas with flora_get_canvas first and use the short node IDs it reports (like n7) in every write. Adding or editing a node never runs it; flora_run_canvas_nodes does, and that spends money.
For a worked example, see Put results on a canvas.
Read a whole canvas: every node with its short ID, settings, position, size and status, plus the edges and a revision.
read-only
Add nodes and edges to a canvas: generation nodes, media from a URL, notes, group frames, timelines and decks.
writes
Edit existing nodes and edges in place: prompt, model, params, label, position, group, notes text, or a media node's file.
writes, destructive
Run generation and timeline nodes already on a canvas, in dependency order, with each node's own model, prompt, params and inputs.
writes, destructive, spends money, async
Lay out nodes with FLORA's layout engine: Tidy, or a row, column or grid.
writes, destructive
Sort existing nodes into named fields (group frames), reusing frames that already exist.
writes, destructive
Delete nodes from a canvas, with every edge that touches them. Deleting a group deletes its members.
writes, destructive
Read the full document of a timeline, deck or notes node, with its revision.
read-only
Replace a timeline's or deck's document, or apply scoped deck edits, guarded by the revision you read.
writes, destructive
flora_get_canvas
Read a whole canvas: every node with its short ID, settings, position, size and status, plus the edges and a revision.
Labels: read-only
Shown in clients as: Get canvas
Use when: Before any canvas write, to get the short node IDs (like n7) that writes accept, or to see idle nodes that haven't run yet.
Don't use when: You only need finished media URLs: use flora_list_canvas_nodes. For a timeline's or deck's full content, use flora_get_canvas_node_document.
Arguments
workspace_id
string
no
Workspace the project belongs to (ws_…). Optional: when omitted it is looked up from project_id. A guessed or placeholder value returns not_found.
project_id
string
yes
Project to read (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
Returns: Every node (short ID, UUID, type, label, group, prompt, model, params, position, size, generation status and current output), the edges between nodes, and an opaque revision that changes whenever the canvas does.
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_list_projects
Usually comes before: flora_add_to_canvas, flora_update_canvas_nodes, flora_run_canvas_nodes, flora_arrange_canvas
Example prompt: "Show me what's on the canvas of my Spring campaign project."
Example call:
flora_list_canvas_nodes
List a canvas's media nodes with their file URLs.
Labels: read-only
Shown in clients as: List canvas nodes
Use when: You want the finished images, videos, audio or 3D files on a canvas and their URLs.
Don't use when: You need the graph, the edges, or idle nodes that haven't run: use flora_get_canvas.
Arguments
project_id
string
yes
Project to read (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
limit
number
no
Max items to return (default 20).
cursor
string
no
Pagination cursor from a previous call's meta.next_cursor.
Returns:
project_id(string): Project identifiercanvas_url(string (uri)): Project canvas URLnodes(array of object)meta(object)
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_list_projects
Usually comes before: flora_run_action, flora_create_generations
Example prompt: "List the images on my Spring campaign canvas with their links."
Example call:
flora_add_to_canvas
Add nodes and edges to a canvas: generation nodes, media from a URL, notes, group frames, timelines and decks.
Labels: writes
Shown in clients as: Add to canvas
Use when: You're building on the canvas: placing media by URL, wiring an image into a new video node to animate it, adding notes or a group frame, or creating a timeline or deck.
Don't use when: You want to generate right away: flora_create_generations adds and runs nodes in one call. To change or delete existing nodes, use flora_update_canvas_nodes or flora_remove_from_canvas. Mermaid and other diagram text are rejected.
Arguments
workspace_id
string
no
Workspace the project belongs to (ws_…). Optional: when omitted it is looked up from project_id. A guessed or placeholder value returns not_found.
project_id
string
yes
Project to add to (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
idempotency_key
string
no
Unique key for this logical add. Reuse it after a timeout to prevent duplicate creation; use a new key for intentionally new content.
add
array of object
no
Nodes to create. Each: {type, ref?, label?, prompt?, model?, params?, position?, group?, content_url?, document?, size?, fit_text?}. type is one of image, video, text, audio, timeline, deck, notes, group, static_image, layer_editor — model3d is not creatable here (generate 3D with flora_create_generations; existing model3d nodes still run via flora_run_canvas_nodes). prompt, model and params configure a generation node (params such as aspect_ratio or resolution are validated against the model's schema and reject the whole call when invalid). content_url (https) places existing media instead and excludes prompt, model and params. A timeline takes no prompt, model, params or content_url: its content is document (see the document field for the shape; validated with the workspace's limits), or omit document and wire media nodes into it with edges. A deck likewise takes no prompt, model, params or content_url: its label is the title and its content is document ({kind:"deck", schema_version:1, slides}; the flora-deck-editor skill carries the slide, layer and geometry vocabulary), or omit document to create a blank deck. A notes node is canvas documentation, not a generation: its body is text (plain text, up to 20,000 characters, stored verbatim), size can resize its box, and fit_text:true fits the body height to its width; flora_get_canvas reports the resulting size. It takes no prompt, model, params, content_url or group, and it never runs; a text node is a generation prompt, so do not use one to document a canvas. group parents the node into an existing group's short id or a group ref from this same call. Up to 200 items.
add[].ref
string
no
Optional handle echoed in created with real IDs. Supply a unique ref when connect or group refers to this new node; otherwise the tool assigns one.
add[].type
string
yes
One of image, video, text, audio, timeline, deck, notes, group, static_image, layer_editor.
add[].label
string
no
Display label pinned on the node.
add[].prompt
string
no
Generation prompt. Mutually exclusive with content_url.
add[].model
string
no
Model name or endpoint id from flora_list_models; omit for the modality default.
add[].params
object
no
Model parameters, validated against the model's schema. Hidden media inputs (image_url, image_urls, video_url, audio_url, model_url) are supplied by connect edges, not params. Use an existing node of the matching media type; model_url takes a model3d source. For an image URL, add a static_image node with content_url and connect it.
add[].position
object
no
Absolute canvas position. Omit to place automatically. Keys: x, y, all required.
add[].group
string
no
Group to parent into: an existing group's short id or a group ref in this call. Not accepted on notes nodes (notes always stay at the top level of the canvas — place one beside a frame with position) or on group nodes (frames do not nest); either rejects the whole call.
add[].content_url
string
no
HTTPS URL of existing image, video or audio to place instead of generating.
add[].text
string
no
Body of a notes node (notes only): plain text up to 20,000 characters, stored verbatim. Rejected on every other type.
add[].size
object
no
Notes only: resize the box in canvas pixels with width, height, or both (width 200–1024, height 120–1024). An omitted side keeps the default. Rejected on every other type. Groups and media nodes cannot be sized: lay them out with flora_arrange_canvas with a row, column, or grid layout to refit a group's frame around its members.
add[].size.width
number
no
200 to 1024.
add[].size.height
number
no
120 to 1024.
add[].fit_text
boolean
no
Notes only: fit the height to the whole body at its width; flora_get_canvas reports the resulting size. Capped at the maximum height and warns if text still overflows. Groups and media nodes cannot be sized: lay them out with flora_arrange_canvas with a row, column, or grid layout to refit a group's frame around its members.
add[].document
object
no
Timeline or deck document (timeline and deck nodes only), forwarded as-is: the API owns the vocabulary, and unknown fields or per-type violations reject server-side naming the field by JSON pointer. Send nested guides, slide document, frame and layers as JSON objects, never JSON-encoded strings. A deck document is {kind:"deck", schema_version:1, slides} — load flora-deck-editor for its slide and layer vocabulary. Timeline shape (snake_case, every key below required unless marked ?): {kind:"timeline", schema_version:1, fps, composition_width, composition_height, tracks:[{id, items:[itemId, …], hidden, muted}], items:{[itemId]:{id, from, duration_in_frames, type:"video"|"image"|"gif"|"audio"|"solid"|"text"|"captions", asset_id (media items), video_start_from_in_seconds?, top?, left?, width?, height? (all four or none)}}, assets:{[assetId]:{id, type:"video"|"image"|"gif"|"audio", filename, mime_type, width, height, media_url (https), duration_in_seconds and has_audio_track (video/audio)}}. items and assets are objects keyed by id, tracks list item ids, the first track paints on top, and unknown keys reject by JSON pointer. Optional keys: kind, schema_version, fps, composition_width, composition_height, tracks, items, assets, slides.
connect
array of object
no
Edges to create: {from, to, in?}. Either end is an existing node's short id (n7) or UUID, or a ref from add in this same call. in names a target input handle id (e.g. "imageUrl"), a modality word such as "image", a named action input, or "enabled"; model parameter names like "image_url" match the handle; omit to connect by modality. One edge per pair — a duplicate is skipped with a warning. Up to 500 items.
connect[].from
string
yes
Source node: short id, UUID, or a ref from add.
connect[].to
string
yes
Target node: short id, UUID, or a ref from add.
connect[].in
string
no
Target input handle id (e.g. "imageUrl") or modality word (e.g. "image"); model parameter names like "image_url" match the handle; omit to connect by modality.
Returns: A created map from each ref to the short ID and UUID the canvas assigned, plus warnings for anything skipped, such as a duplicate edge. Use the assigned IDs, never your refs, in later calls.
Cost: Free. Adding a generation node doesn't run it; flora_run_canvas_nodes does, and that spends money.
Usually comes after: flora_get_canvas
Usually comes before: flora_run_canvas_nodes, flora_arrange_canvas
Example prompt: "Put my product photo on the Spring campaign canvas and wire it into a new video node."
Example call:
flora_update_canvas_nodes
Edit existing nodes and edges in place: prompt, model, params, label, position, group, notes text, or a media node's file.
Labels: writes · destructive
Shown in clients as: Update canvas nodes
Use when: The user wants to change a node without losing its ID, outputs or wiring, move nodes into a group frame, or disconnect edges.
Don't use when: You want to add nodes (flora_add_to_canvas), delete them (flora_remove_from_canvas), replace a timeline or deck document (flora_update_canvas_node_document), or lay out many nodes at once (flora_arrange_canvas).
Arguments
workspace_id
string
yes
Workspace the project belongs to (ws_…).
project_id
string
yes
Project to edit (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
update
array of object
no
Existing nodes to modify, one entry per node: {id, label?, prompt?, model?, params?, position?, text?, size?, fit_text?, group?, content_url?, asset_id?}. Only the fields present change. prompt and model apply to generation nodes; params to generation nodes and, as the action's own parameter values, to action nodes; text, size, and fit_text apply to notes nodes only. Use size to resize a note or fit_text:true to show the whole body without scrolling; flora_get_canvas reports the resulting size. Any other field is rejected — a timeline or deck document is replaced with flora_update_canvas_node_document. Up to 200 items.
update[].id
string
yes
Node to modify: its short id (n7) or UUID from flora_get_canvas.
update[].label
string
no
Replacement display label.
update[].prompt
string
no
Replacement generation prompt.
update[].model
string
no
Replacement model name or endpoint id from flora_list_models.
update[].params
object
no
Model parameters merged key by key into the node's stored parameters; validated against the model's schema.
update[].position
object
no
New absolute canvas position. Keys: x, y, all required.
update[].text
string
no
Replacement body of a notes node (notes only): plain text up to 20,000 characters, stored verbatim.
update[].size
object
no
Notes only: resize the box in canvas pixels with width, height, or both (width 200–1024, height 120–1024). An omitted side keeps its current value. Groups and media nodes cannot be sized: lay them out with flora_arrange_canvas with a row, column, or grid layout to refit a group's frame around its members.
update[].size.width
number
no
200 to 1024.
update[].size.height
number
no
120 to 1024.
update[].fit_text
boolean
no
Notes only: fit the height to the post-update body at its width; flora_get_canvas reports the resulting size. Capped at the maximum height and warns if text still overflows. Groups and media nodes cannot be sized: lay them out with flora_arrange_canvas with a row, column, or grid layout to refit a group's frame around its members.
update[].group
string or null
no
Group frame to move this node into, by its short id or UUID from flora_get_canvas, or null to ungroup it to the canvas top level. The node keeps its canvas spot; a frame it joins grows to wrap it. Not accepted on group nodes (frames do not nest), on a notes node joining a group, or on a pinned label.
update[].content_url
string
no
HTTPS URL of an image, video, or audio file that replaces a static media node's content in place, keeping its id, edges, group and label. The file is copied onto Flora's CDN as on an add. Cannot combine with asset_id, prompt, model, params, text, size or fit_text.
update[].asset_id
string
no
An asset id (asset_…) already in this workspace's library that replaces a static media node's content in place, keeping its id, edges, group and label; its kind must match the node's. The asset is referenced, not copied or deleted. Cannot combine with content_url, prompt, model, params, text, size or fit_text.
disconnect
array of object
no
Edges to remove: {from, to, in?}, both ends existing nodes' short ids or UUIDs. in names the input slot the edge feeds, as flora_get_canvas reports it; omit it to remove every edge between the pair. Up to 500 items.
disconnect[].from
string
yes
Source node: short id or UUID.
disconnect[].to
string
yes
Target node: short id or UUID.
disconnect[].in
string
no
Input slot of the edge to remove; omit to remove every edge between the pair.
Returns: Applied counts, the new revision and any warnings. An unknown node ID or edge rejects the whole call with ref_not_found, and nothing changes.
Cost: Free. Editing a generation node doesn't run it; its old output stays until flora_run_canvas_nodes runs it again.
Usually comes after: flora_get_canvas
Usually comes before: flora_run_canvas_nodes
Example prompt: "Change the prompt on node n7 to golden hour light and disconnect it from n3."
Example call:
flora_run_canvas_nodes
Run generation and timeline nodes already on a canvas, in dependency order, with each node's own model, prompt, params and inputs.
Labels: writes · destructive · spends money · async
Shown in clients as: Run canvas nodes
Use when: Nodes are set up on the canvas (for example a video node wired to an image) and the user approved the cost.
Don't use when: Nothing is on the canvas yet: flora_create_generations is simpler and can quote first. For action nodes, use flora_run_canvas_action.
Arguments
workspace_id
string
no
Workspace the project belongs to (ws_…). Optional: when omitted it is looked up from project_id. A guessed or placeholder value returns not_found.
project_id
string
yes
Project holding the nodes (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
node_ids
array of string
yes
Nodes to run: the short ids (n1, n2, …) or node UUIDs reported by flora_get_canvas or in the created map flora_add_to_canvas returns. The refs you chose in your own add call are NOT valid here. 1 to 50 items.
Returns: One entry per node. Started entries carry a run_id to poll with flora_list_generations. Skipped entries carry a reason, such as no_model_configured or generation_already_running, and never stop the rest.
Cost: Spends money as soon as it runs, with no confirmation step and no quote option. Estimate first from each node's model (estimated_cost_usd in flora_list_models), show the user the total in US dollars, and get approval. Timeline nodes bill video editor render usage instead.
Usually comes after: flora_add_to_canvas, flora_update_canvas_nodes
Usually comes before: flora_list_generations
Example prompt: "Run the video node I just wired to the product photo."
Example call:
flora_arrange_canvas
Lay out nodes with FLORA's layout engine: Tidy, or a row, column or grid.
Labels: writes · destructive
Shown in clients as: Arrange canvas
Use when: The user asks for a row, column, grid, comparison strip or "side by side", or you just added a batch of nodes.
Don't use when: You'd compute positions by hand with flora_update_canvas_nodes. Pass node_ids (with optional layout) or all: true alone, never both, and use all: true only when the user asked to reorganize the whole canvas.
Arguments
workspace_id
string
no
Workspace the project belongs to (ws_…). Optional: when omitted it is looked up from project_id. A guessed or placeholder value returns not_found.
project_id
string
yes
Project canvas to arrange (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
node_ids
array of string
no
Nodes to arrange: the short ids (n1, n2, …) or node UUIDs exactly as flora_get_canvas, flora_list_canvas_nodes, or a flora_add_to_canvas / flora_attach_asset response reported them (including api_asset_… node ids for attached assets) — never ids you predicted, and never a bare asset id (asset_…). With layout, this order is the placement order. 1 to 500 items.
all
boolean
no
Tidy every node on the canvas. Only when the user asked for it; cannot be combined with layout.
layout
object
no
Place node_ids in a row, a column, or a grid instead of Tidy: {mode, columns?, gap?, origin?}. All top-level, or all members of one group; a label pinned to a node is rejected.
layout.mode
string
yes
row: left to right. column: top to bottom. grid: row-major, columns per row. One of row, column, grid.
layout.columns
integer
no
Nodes per row, grid only; defaults to the square root of the count rounded up. Ignored on row and column; mode determines the row or column. 1 to 500.
layout.gap
number
no
Space between neighbours in canvas units, on both axes. Defaults to 64, the canvas's own grid gap. 0 to 4096.
layout.origin
object
no
Absolute painted top-left of the block (where the first box starts painting), not a node anchor. Graph positions for ordinary blocks are top-center: origin.x = first anchor.x - first width/2. Omit to keep the set where it is (its current bounding-box corner), or to start group members at their frame's padded corner; inside a group it may not sit above or left of that corner. For members of one field, omit origin to use its padded content corner. The exact frame anchor (both x and y equal the frame's graph position) is also accepted as that padded corner; other explicit origins remain literal and must be inside the padded area. Keys: x, y, all required.
Returns: {arranged, moved, overlaps, bounds, revision}. moved: 0 means the nodes were already laid out. A non-empty overlaps lists node pairs that now collide.
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_create_generations, flora_add_to_canvas
Usually comes before: flora_get_canvas
Example prompt: "Arrange the four new images in a 2 by 2 grid."
Example call:
flora_organize_canvas_fields
Sort existing nodes into named fields (group frames), reusing frames that already exist.
Labels: writes · destructive
Shown in clients as: Organize canvas fields
Use when: The user wants work sorted into fields such as Concepts and Finals. It moves the nodes, lays out each field in a grid and spaces the frames.
Don't use when: Existing positions must stay fixed, or you need exact coordinates: use flora_arrange_canvas or flora_update_canvas_nodes. Never recreate nodes to organize them.
Arguments
workspace_id
string
no
Workspace (ws_…). Omit to resolve from the exact project_id.
project_id
string
yes
Existing project (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
fields
array of object
yes
1 to 50 items.
fields[].label
string
yes
1 to 500 characters.
fields[].node_ids
array of string
yes
1 to 200 items.
Returns: How many nodes it organized, and each field's label and frame ID. If it's interrupted, read the canvas and retry with the same labels and node IDs.
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_get_canvas
Usually comes before: flora_get_canvas
Example prompt: "Sort my canvas into Concepts and Finals fields."
Example call:
flora_remove_from_canvas
Delete nodes from a canvas, with every edge that touches them. Deleting a group deletes its members.
Labels: writes · destructive
Shown in clients as: Remove from canvas
Use when: The user asked you to delete specific nodes.
Don't use when: You only want to clear a node's content or wiring: use flora_update_canvas_nodes. Deleting can't be undone through the API.
Arguments
workspace_id
string
yes
Workspace the project belongs to (ws_…).
project_id
string
yes
Project to delete from (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
node_ids
array of string
yes
Nodes to delete: the short ids (n1, n2, …) or node UUIDs flora_get_canvas reports. 1 to 200 items.
Returns: A removed count that includes group members deleted with their group. An unknown ID rejects the whole call, and nothing is deleted.
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_get_canvas
Example prompt: "Delete nodes n4 and n5 from the Spring campaign canvas."
Example call:
flora_get_canvas_node_document
Read the full document of a timeline, deck or notes node, with its revision.
Labels: read-only
Shown in clients as: Get node document
Use when: Before editing a timeline or deck, or to read one deck slide or layer. flora_get_canvas only carries a summary of these nodes.
Don't use when: The node carries no document, like image and video nodes: use flora_get_canvas for their settings and flora_list_canvas_nodes for their files.
Arguments
workspace_id
string
no
Workspace the project belongs to (ws_…). Optional: when omitted it is looked up from project_id. A guessed or placeholder value returns not_found.
project_id
string
yes
Project holding the node (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
node_id
string
yes
The node's short id (n7) or UUID, as flora_get_canvas or the created map returned by flora_add_to_canvas reports it.
slide
string
no
Deck nodes only: read this slide id instead of the whole document. Combine with layer to read a single layer.
layer
string
no
Deck nodes only: read this layer id; requires slide.
Returns: The document and its revision. A notes node reads as {kind: "notes", text} at revision 0. A timeline with no document yet returns not_found.
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_get_canvas
Usually comes before: flora_update_canvas_node_document
Example prompt: "Read the slides in the deck on my launch canvas."
Example call:
flora_update_canvas_node_document
Replace a timeline's or deck's document, or apply scoped deck edits, guarded by the revision you read.
Labels: writes · destructive
Shown in clients as: Update node document
Use when: The user wants to change a timeline's tracks and items, or a deck's slides and layers.
Don't use when: You're editing a notes node (use flora_update_canvas_nodes with text). Writing a timeline doesn't render it (flora_run_canvas_nodes does), and decks have no render or PDF export here.
Arguments
workspace_id
string
no
Workspace the project belongs to (ws_…). Optional: when omitted it is looked up from project_id. A guessed or placeholder value returns not_found.
project_id
string
yes
Project holding the node (prj_…). Use project_id from flora_list_projects or flora_create_project. An API-issued canvas URL's /projects/<id> segment becomes prj_<id>.
node_id
string
yes
The node's short id (n7) or UUID, as flora_get_canvas reports it.
document
object
no
The complete replacement document, kind matching the node type. A deck is {kind:"deck", schema_version:1, slides}; load flora-deck-editor for its slide and layer vocabulary. Timeline shape (snake_case, every key below required unless marked ?): {kind:"timeline", schema_version:1, fps, composition_width, composition_height, tracks:[{id, items:[itemId, …], hidden, muted}], items:{[itemId]:{id, from, duration_in_frames, type:"video"|"image"|"gif"|"audio"|"solid"|"text"|"captions", asset_id (media items), video_start_from_in_seconds?, top?, left?, width?, height? (all four or none)}}, assets:{[assetId]:{id, type:"video"|"image"|"gif"|"audio", filename, mime_type, width, height, media_url (https), duration_in_seconds and has_audio_track (video/audio)}}. items and assets are objects keyed by id, tracks list item ids, the first track paints on top, and unknown keys reject by JSON pointer. Optional keys: kind, schema_version, fps, composition_width, composition_height, tracks, items, assets, slides.
base_revision
integer
yes
The document revision this write is based on, as flora_get_canvas_node_document reported it; 0 when the node has no document yet. Minimum 0.
commands
array of object
no
Deck nodes only: ordered scoped edits such as {type:"update_layers", slide_id, layers:[…]} or {type:"remove_slide", slide_id} — pass this OR document.
Returns: The write result with the new revision. A stale base_revision is rejected with revision_conflict and nothing is written: read the document again and reapply the change.
Cost: Free. This tool doesn't spend money.
Usually comes after: flora_get_canvas_node_document
Usually comes before: flora_run_canvas_nodes
Example prompt: "Remove slide 3 from the launch deck."
Example call:
Last updated
Was this helpful?