Skip to main content
Glama
Figma Local MCP

Figma Local MCP

by ppgee

Get Figma selection

get_selection

Read the current selection from an open Figma file through the local desktop plugin, with an optional file key to target a specific file instead of the last active one.

Instructions

Read the current selection in the open Figma file through the local desktop plugin.

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": "get_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileKeyNoOptional key of the Figma file to target. Omit to use the most recently active file; see get_plugin_status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It does disclose the key operational dependency (requires the local desktop plugin / open file), but says nothing about what happens if nothing is selected, whether the plugin must be running, or whether the call fails or returns empty.

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?

A single well-formed sentence with no filler, and the core action is front-loaded. Nothing is wasted or buried.

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?

For a simple one-optional-parameter read tool with full schema coverage and no output schema, the description covers what the tool does and the environment it requires. The main residual gap is return-shape behavior when no selection exists, which matters somewhat given there is 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?

Only one optional parameter (fileKey) exists, and the schema already documents it at 100% coverage, including 'omit to use the most recently active file.' The description adds no additional meaning about how targeting a file interacts with the notion of 'current selection.'

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?

States a specific verb ('Read') and resource ('the current selection') and adds scope ('in the open Figma file through the local desktop plugin'). An agent can distinguish this from get_document or get_design_context, though it doesn't name a sibling or explicitly exclude alternatives.

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 only implied: 'current selection' suggests the tool is for the user's live selection rather than stored document data. There is no explicit when-to-use/when-not-to-use guidance, no statement about preferring get_document for anything not selected, and no prerequisite call to get_plugin_status.

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