Skip to main content
Glama

figma_restyle_artboard

Destructive

Apply color remapping, font family changes, radius scaling, and spacing scaling to every element in a Figma artboard. Control with colorMap, fontFamily, radiusScale, and spacingScale.

Instructions

Restyle an entire artboard by walking all descendants and applying color, font, radius, and spacing overrides. Pass a colorMap to remap hex colors (e.g. {"ffffff": "0f172a"} changes white to dark navy). Optional fontFamily changes all text to a new font. radiusScale multiplies all corner radii. spacingScale multiplies all padding and gaps.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesRoot artboard node ID to restyle.
colorMapNoHex color remapping: { "oldHex": "newHex" }. No # prefix. Lowercase.
fontFamilyNoNew font family for all text nodes (e.g. "DM Sans").
radiusScaleNoMultiplier for all corner radii (e.g. 0.5 = halve, 2.0 = double).
spacingScaleNoMultiplier for all padding and gap values.
Behavior4/5

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

Annotations already indicate destructiveHint=true. Description adds behavioral detail: 'walking all descendants' and explains how overrides apply, enhancing transparency beyond annotations.

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

Conciseness5/5

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

Two sentences, no fluff. First sentence states purpose and method, second explains optional parameters with examples. Front-loaded and efficient.

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

Completeness4/5

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

Given the tool's complexity (5 params, nested object, destructive) and no output schema, the description covers core functionality and parameter semantics well. Could mention prerequisites or error states, but not required for basic understanding.

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 baseline 3. Description adds significant value with practical examples (e.g., colorMap remapping example, meaning of radiusScale/spacingScale) that clarify usage beyond schema descriptions.

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?

Description clearly states 'Restyle an entire artboard' with specific verb-resource, and the tool is distinct from siblings like figma_set_node_fill or figma_batch. No ambiguity.

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

Usage Guidelines3/5

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

Usage is implied ('to restyle an artboard'), but no explicit when-to-use, when-not-to-use, or comparison with alternative tools like figma_set_node_fill or figma_batch.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/miapre/mimic-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server