Skip to main content
Glama

capture_screenshot

Capture a Figma node or page as a base64 image to feed into the analyze tool, starting the design self-heal loop.

Instructions

Capture a screenshot of a Figma node (or the current page) as image data.

Prereq: bridge + plugin connected (check_bridge_health); node IDs from get_selection or get_page_tree. Returns: { type: "image", data: base64, mimeType }. Feed into analyze_design; first step of the self-heal loop (CREATE → SCREENSHOT → ANALYZE → FIX). Prefer SVG for vector components, PNG for complex frames. Errors: isError if not connected or the node is invalid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scaleNoExport scale multiplier (default 2 = @2x, max 4). Use 1 for quick inspection, 2–3 for high-quality analysis.
formatNoExport format. PNG for raster output (default, works for all node types). SVG for vector output (best for icons and simple components).PNG
nodeIdNoFigma node ID to capture (e.g. '123:456'). Omit to capture the entire current page. Obtain IDs from get_selection or get_page_tree.
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses the return format (base64 image data with mime type) and error conditions (isError if not connected or invalid node). It does not discuss potential side effects (assumed read-only) or rate limits, which leaves some gaps.

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?

The description is concise and well-structured with clear sections: purpose, prerequisites, return value, usage hints, errors. Every sentence serves a purpose with no superfluous text.

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?

No output schema is provided, but the description adequately explains the return value. It covers prerequisites, error handling, and integration with other tools. Minor improvements could include size limitations or additional limitations, but overall it's complete for a tool with simple parameters.

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 100%, so parameters already have descriptions. The tool description adds minimal new meaning beyond what's in the schema (e.g., format preference, omitting nodeId for full page). Baselines at 3 since schema does the heavy lifting.

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?

The description clearly states the action ('Capture a screenshot') and the resource ('Figma node or current page'). It distinguishes from sibling tools by being the only screenshot tool, and provides guidance on format preference (SVG vs PNG) which adds clarity.

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?

Explicit prerequisites are given (bridge + plugin connected, node IDs from other tools). It also positions the tool in the self-heal loop and suggests feeding output into analyze_design. However, it does not explicitly state when not to use this tool or mention alternatives.

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/sarveshsea/memi'

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