create_variable_collection
Create a new local variable collection with an optional initial mode
How to use it
create_variable_collection is exposed by the Figma MCP Rust MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the create_variable_collection tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Figma MCP Rust
claude mcp add -s project figma-mcp-rust -- npx -y @alvinindra/figma-mcp-rust@latestOther tools in Figma MCP Rust (39)
Add a new mode to an existing collection (e.g. Light/Dark)
Apply an existing local style to a node, linking it to that style
Bulk rename nodes via find/replace, regex, or prefix/suffix
Clone a node, optionally repositioning or reparenting
Convert an existing FRAME node into a reusable component
Create a named effect style (drop shadow, inner shadow, blur)
Create an ellipse or circle
Create a frame with optional auto-layout, fill, and parent
Create a named layout grid style (columns, rows, or grid)
Create a named paint style with a solid color
Create a rectangle with optional fill and corner radius
Create a Figma Section node to organise frames on a page
Create a text node (font loaded automatically)
Create a named text style with font, size, and spacing
Delete one or more nodes permanently
Delete any style (paint, text, effect, or grid) by ID
Find and replace text across all TEXT nodes in a subtree or page; supports regex
Decode base64 image and place it as a rectangle fill
Lock one or more nodes to prevent accidental edits
Move nodes to an absolute x/y position
Remove all or specific reactions by zero-based index from a node
Rename a node
Change z-order: bringToFront, sendToBack, bringForward, sendBackward
Move nodes to a different parent frame, group, or section
Resize nodes by width and/or height
Set absolute rotation in degrees on one or more nodes
Set or update auto-layout (flex) properties on a frame
Set blend mode (MULTIPLY, SCREEN, OVERLAY, and more) on one or more nodes
Set responsive constraints { horizontal, vertical } on one or more nodes
Set corner radius, uniform or per-corner
Apply drop shadow / blur effects directly on a node (no style required)
Set solid fill color (hex) on a node
Set opacity of one or more nodes (0 = transparent, 1 = opaque)
Set prototype reactions (triggers + actions) on a node; mode replace or append
Set solid stroke color and weight on a node
Update text content of an existing TEXT node
Show or hide one or more nodes
Unlock one or more nodes
Rename or recolor an existing paint style