Skip to main content
Glama

Run FigCraft engine commands

run_figcraft_commands
Destructive

Executes ordered FigCraft commands on new or opened designs, chains step outputs as parameters, and saves results in chosen formats.

Instructions

Advanced: run any FigCraft commands in order (node., page., component., instance., style., variable., align., layout., text., design., export.*...) plus the engine tools create_node / set_properties / inspect_document / get_node / select / export / screenshot / design_context (step id = the tool name), on a new or an opened design, then save. Parameters can use "$steps[N].field" for a value returned by step N (0-based), e.g. "$steps[0].id".

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "run_figcraft_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoFile name for the outputs, without extension.figcraft
stepsNo
formatsNoSave the result (needs output_dir or output_path).
previewNoReturn a picture of the result.
open_pathNoAbsolute file to open first (never saved over; save a copy with formats).
overwriteNo
output_dirNo
output_pathNo
stop_on_errorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

Beyond the destructive and non-idempotent annotations, it discloses ordered execution, saving, operation on new or opened designs, and value chaining between steps. It does not explain partial failures, overwrite consequences, or save/output preconditions, and "then save" sounds unconditional even though the schema makes saving formats dependent on an output destination.

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?

The advanced nature and ordered-command purpose are front-loaded, and the chaining syntax is compact and actionable. The long namespace and engine-tool inventory makes the first sentence dense, but most of that content aids command discovery rather than merely repeating structured fields.

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

Completeness2/5

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

The core step mechanism is explained, but there is no pointer to a source for valid command names, command parameters, or returned fields, and save destinations, overwrite behavior, and failure handling are not cohesively explained. These are material gaps for a destructive executor supporting up to 5,000 steps, nine sparsely documented parameters, and no output schema.

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?

It adds important semantics missing from the schema: the step id is the command or tool name, and 0-based "$steps[N].field" expressions reuse values returned by earlier steps, with a concrete example. With only 44% schema coverage, however, it does not compensate for undocumented overwrite, output_dir/output_path, and stop_on_error behavior or explain which returned fields are available.

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 specifies the operation and resource: execute FigCraft commands and engine tools sequentially on a new or opened design, with concrete command-family examples. "Advanced" suggests a general-purpose escape hatch, but the description does not explicitly differentiate this runner from any sibling.

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?

"Advanced" and "run any FigCraft commands in order" imply low-level, multi-step workflows, while "on a new or an opened design" establishes the operating context. There is no explicit when-to-use, when-not-to-use, prerequisite, or alternative guidance, so selection versus siblings remains largely inferential.

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