How to update every text layer in a Figma doc from one prompt
When to use: You have a spec that renames 50 strings and you do not want to click 50 times.
Prerequisites
- Bun installed — curl -fsSL https://bun.sh/install | bash
- Figma desktop open with the plugin linked — Plugins > Development > Link existing plugin > point to src/cursor_mcp_plugin/manifest.json
- WebSocket bridge running — bun run start in the cloned repo
Flow
-
Join the channel from the plugin panelJoin Figma channel X7F2 and list all text nodes on the current page.✓ Copied→ List of node ids with current text
-
Map old copy to new copyHere is a CSV of old_string,new_string. For every text node whose content matches an old_string, replace with the new_string using set_multiple_text_contents.✓ Copied→ Count of updates applied, diff preview
-
Spot-check visuallyExport the three frames that had the most edits as PNGs so I can review.✓ Copied→ PNG URLs / file paths
Outcome: A copy-reviewed file with every string updated and a before/after export to prove it.
Pitfalls
- Plugin disconnects mid-operation — set_multiple_text_contents is idempotent — re-run with the same mapping; already-correct nodes are skipped
- Text in components vs instances confuses updates — Use get_instance_overrides first to see which instances override the base text