Skip to main content
Glama

Batch edits

figma_batch
Idempotent

Apply up to 50 Figma edits—fills, strokes, radius, effects, auto-layout, text—in one call and one undo step, with per-step validation and partial-failure details.

Instructions

Several edits in ONE call and ONE undo step — a polish pass over what you built: fills, strokes, radius, effects, auto-layout, sizes, text, constraints, names. steps is a JSON array of { "op": "set_fills", "params": { … } } (tool names without figma_, 1–50), each checked against that tool's own parameters before anything runs. Modify and style edits only: no creates (figma_create_from_spec builds), no deletes, nothing that replaces nodes with new ids (group, boolean, flatten, clone). Steps run in order and stop at the first failure without rolling back: the error's partial.steps and partial.failedAt say what was applied, and one Ctrl+Z undoes the whole batch. Success: { steps: [{ index, op, ok, result }], completed, itemsFailed? }. A step's ok means it ran; each node it could not change is listed in itemsFailed: [{ step, op, id, error }]. Keyframe steps pass the same motion gate as figma_set_keyframes (BRIDGE_PROCESS).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stepsYesJSON array, e.g. [{"op":"set_corner_radius","params":{"nodeIds":["1:2"],"radius":12}},{"op":"set_opacity","params":{"nodeIds":["1:3"],"opacity":0.6}}].
sessionNoOptional sessionId or file name, to pick a Figma file when more than one is connected.
idempotencyKeyNoCaller-owned retry key, ≤128 chars. Re-calling with the same key never executes twice: it returns the existing result, or waits for the op still in flight. Supply your own for anything large — if the MCP client times out (rather than the bridge), only a key you chose can be used to retry safely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare readOnly=false, destructive=false, idempotent=true, openWorld=false. The description goes far beyond: stop-at-first-failure with no rollback, partial.steps/partial.failedAt semantics, whole-batch Ctrl+Z undo, the 1–50 step limit, pre-flight validation of each step against its own tool parameters, and the BRIDGE_PROCESS motion gate. This is exactly the extra behavioral context the annotations cannot carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core value (ONE call, ONE undo) and the create/delete exclusions before the mechanics. Everything present earns its place, though the single dense paragraph packs success/error shapes, validation, and the motion gate together, which costs some scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex aggregator tool with no output schema, so the description carries the full burden of describing returns — and it does: the success object shape, the itemsFailed array, and partial failure reporting. Combined with the step format and exclusions, an agent has everything needed to invoke it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: op names must omit the figma_ prefix, the 1–50 step range, and that each step is validated against its own tool's parameters before execution. Session and idempotencyKey are left to the schema, which documents them adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource ('several edits in ONE call and ONE undo step') and scopes the resource precisely: fills, strokes, radius, effects, auto-layout, sizes, text, constraints, names. It also distinguishes itself from siblings by explicitly excluding creates (naming figma_create_from_spec), deletes, and node-replacing ops (group, boolean, flatten, clone), so an agent can differentiate it from hundreds of siblings without reading a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-use ('a polish pass over what you built'), when-not (no creates, no deletes, nothing that replaces nodes with new ids), and names the alternative for the excluded case (figma_create_from_spec builds). It also flags the motion-gate prerequisite for keyframe steps, so the agent knows exactly what conditions apply.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools