Skip to main content
Glama
InDesign MCP

InDesign MCP

indesign_uxp_read_text_frame

Read-onlyIdempotent

Reads the text content of a specific InDesign text frame by document and text frame IDs, returning up to 50,000 characters and flagging truncated results.

Instructions

Reads the text in one explicitly identified text frame through UXP. Use IDs returned by indesign_uxp_inspect_document; text is capped at 50,000 characters and may be marked truncated.

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": {
      "document_id": "<document_id>",
      "text_frame_id": "<text_frame_id>"
    },
    "name": "indesign_uxp_read_text_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeout_msNoOptional wait in milliseconds; defaults to 30,000 and is limited to 1,000–120,000
document_idYesPositive numeric Document.id from the inspection result
text_frame_idYesPositive numeric TextFrame.id from the inspection result

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint and idempotentHint, so safety is covered structurally. The description adds genuinely useful behavior not in the annotations: a 50,000-character cap and a possible truncated marker. It stops short of describing the return payload (text field name, truncation flag shape), which matters since no output schema exists.

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 verb and resource, followed by the prerequisite and the size limit. No filler beyond the minor 'through UXP' qualifier.

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 read tool with full schema coverage and read-only annotations, this covers the essentials, including the truncation caveat an agent needs to interpret large results. The only gap is the shape of the returned data, which no output schema documents.

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 each parameter is already documented in the schema, including that IDs come from the inspection result. The description's provenance note largely repeats the schema wording and adds nothing about timeout_ms or ID validity semantics, so baseline 3 applies.

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 and resource ('Reads the text in one explicitly identified text frame'), and the 'one explicitly identified' scoping separates it from a document-wide inspection. It doesn't explicitly contrast with sibling readers/writers such as indesign_uxp_set_text_frame, so it stops short of full sibling differentiation.

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?

Gives a clear prerequisite and workflow: obtain IDs from indesign_uxp_inspect_document first. It offers no when-not-to-use guidance or named alternative for other read paths, but the calling context is unambiguous.

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