Skip to main content
Glama

read_frame_text

Read-only

Extracts visible text from Figma frames or nodes in reading order, joined by ·, so you can inspect screen content without rendering. Repeated header/footer text across 3+ screens appears once.

Instructions

Visible text of screens or any nodes, in reading order, joined by " · ". The cheapest way to know what a screen shows: prefer it to renders. Header/footer text repeated across 3+ screens is printed once.

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": {
      "file": "<file>",
      "ids": "<ids>"
    },
    "name": "read_frame_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYesNode ids (80:5478 or 80-5478) or node URLs
fileYesFigma file URL or key
offsetNoFrom a [more: …] footer

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld/non-destructive, so the safety profile is covered; the description adds real behavioral detail on top: text comes back in reading order joined by a separator, and header/footer text repeated across 3+ screens is collapsed to a single occurrence. That dedup rule is exactly the kind of output-shaping behavior an agent cannot infer from annotations or schema.

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?

Three short sentences with zero filler, front-loaded with what is returned and immediately followed by the cost-based routing advice. Every clause carries information: output format, sibling preference, and dedup behavior.

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?

With no output schema, the description takes on the job of explaining return values and does so (joined text, reading order, dedup). The one gap is pagination: the offset parameter's "[more: …] footer" hint lives only in the schema, so an agent must read the schema to learn how to continue a truncated 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 description coverage is 100%, so all three parameters (ids, file, offset) are already documented in structured form. The description adds only that ids can be "any nodes" and doesn't clarify offset or the id-format variants beyond what the schema states, so the baseline 3 applies.

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?

"Visible text of screens or any nodes, in reading order, joined by " · "" states a specific verb (read/extract), the resource (visible text), and the output shape, and it explicitly separates itself from the render sibling by saying to prefer it over renders. An agent can distinguish it from read_render and read_outline without opening any 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?

"The cheapest way to know what a screen shows: prefer it to renders" gives an explicit routing rule against a concrete alternative, which is more than most definitions offer. It stops short of stating when-not conditions (for example when a render or structure read is actually required), so it is strong but not fully exhaustive.

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