Skip to main content
Glama

set_properties

Sets arbitrary properties on Figma nodes—such as name, opacity, layout, fills, text, and size—so you can edit design elements directly without manual changes.

Instructions

Set arbitrary properties on nodes (e.g. {"name":"Card","opacity":0.5,"layoutMode":"VERTICAL","itemSpacing":8,"fills":"#FF0000","characters":"Hi"}). fills/strokes accept a hex string; characters loads fonts; width/height resize.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "nodeIds": "<nodeIds>",
      "props": "<props>"
    },
    "name": "set_properties"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoTarget file (fileKey, id or name). Defaults to the most recently active file.
propsYes
nodeIdsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose notable behaviors: hex-string coercion for `fills`/`strokes`, font loading triggered by `characters`, and resize via width/height. It omits whether existing properties are merged or overwritten, how unknown property keys are handled, and what happens when only some of multiple `nodeIds` succeed.

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-loaded with the core action, followed by a dense parenthetical example and a short note on special value types. No filler sentences, though the inline JSON example is somewhat hard to parse at a glance.

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

Completeness3/5

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

For a mutation tool with no annotations, no output schema, and an open-ended `props` object, the definition covers the main value-type quirks but leaves error behavior, merge semantics, and return values unaddressed. It is adequate to attempt a call but not to predict its outcome.

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

Parameters3/5

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

Schema coverage is only 33% and `props` is a free-form object, so the description must compensate; it usefully enumerates example keys (name, opacity, layoutMode, itemSpacing, fills, characters) and special-cases fills/strokes/characters/width-height. However the list is explicitly non-exhaustive ("e.g.") and `nodeIds` semantics are left entirely to the schema.

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

Purpose4/5

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

The description gives a specific verb and resource ("Set arbitrary properties on nodes") and immediately grounds it with a concrete example payload, so the agent knows this is a generic write-back for node attributes. It does not, however, distinguish itself from close siblings such as set_instance_properties or set_stroke, which it partially overlaps via `fills`/`strokes`.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance; the agent must infer that this is the catch-all setter versus the many specialized siblings. Nothing states precedence, e.g. whether to prefer set_stroke for strokes or this tool.

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