Skip to main content
Glama
figma-bridge

figma-bridge

by Seuketchi

figma_run_file

Executes a JavaScript file from disk inside an open Figma file, enabling large generated scripts to run without passing code through the conversation.

Instructions

Run a JavaScript file from disk in Figma, the same way as figma_run. Use it for large generated scripts (such as Scripter scripts from the handoff tool) so they do not travel through the conversation.

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": {
      "path": "<path>"
    },
    "name": "figma_run_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
timeout_sNodefault 300

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/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 disclosure burden. It does convey real behavioral context: the script executes inside Figma exactly like figma_run, and the file-on-disk route exists to avoid burning conversation tokens. However, it says nothing about execution requirements (Figma app/bridge running), what happens to document state, whether errors or console output are surfaced, or that the timeout is a hard cap.

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 short sentences, front-loaded with the action and then the routing rationale. The parenthetical example and the 'so they do not travel through the conversation' clause both earn their space by explaining the tool's reason for existing.

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 2-parameter tool with no output schema, the description covers the what and the why, but leaves a significant gap: an agent cannot tell whether the executed script's return value or logs come back through this tool. That is central to deciding whether to call it at all and to interpret the result.

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 50%: timeout_s has its own default hint, while path is only a bare string. The description supplies the missing meaning for path ('a JavaScript file from disk'), which is genuinely useful. It adds nothing about the timeout parameter, so it lands at the mid-range baseline rather than above it.

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?

States a specific verb and resource ('Run a JavaScript file from disk in Figma') and immediately scopes it against the sibling figma_run by framing it as the same operation with the script supplied as a file rather than inline. An agent can distinguish the two tools without opening either schema.

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

Usage Guidelines4/5

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

Explicitly says when to use it: large generated scripts, with a concrete example (Scripter scripts from the handoff tool). The exclusion is implied by the reference to figma_run rather than stated outright ('use figma_run for small or inline scripts'), which keeps it just short of a 5.

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