Batch rename
figma_batch_rename_nodesRename Figma nodes in bulk with find/replace across a page, selection, or subtree; filter by node type and optionally use regex.
Instructions
Bulk rename by find/replace over names. Scope, optional type filter, optional regex. Useful for turning Frame 12 into Card / 12. Returns per-item results: items: [{ id, ok, error? }] — one node failing does not fail the call. Editors: Design; unverified: FigJam, Slides.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regex | No | Default false. | |
| scope | No | Default "page". | |
| types | No | Only these node types, e.g. ["FRAME"]. | |
| nodeId | No | Subtree root when scope is "subtree". | |
| pattern | Yes | Text to find in names (or a regex when `regex: true`). | |
| replace | Yes | ||
| session | No | Optional sessionId or file name, to pick a Figma file when more than one is connected. | |
| idempotencyKey | No | Caller-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. |