Skip to main content
Glama

get_styled_text_segments

Read-onlyIdempotent

Extract text segments with specific styling from a Figma text node based on properties like font size, weight, or decoration. Retrieve structured JSON data for precise style analysis.

Instructions

Get text segments with specific styling in a text node.

Returns:

  • content: Array of objects. Each object contains a type: "text" and a text field with the styled text segments as JSON.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nodeIdYesThe unique Figma text node ID to analyze. Must be a string in the format '123:456'.
propertyYesThe style property to analyze segments by. Must be one of the allowed style property names.
Behavior4/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, idempotentHint=true, and edgeCaseWarnings. The description adds value by specifying the return format (array of objects with type and text fields) and clarifying it's for analyzing style runs, which goes beyond annotations. No contradiction with annotations.

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 front-loaded with the core purpose in the first sentence, followed by a concise specification of the return format. Every sentence adds necessary information without waste, making it efficient and well-structured for quick understanding.

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?

Given the tool's moderate complexity (2 parameters, read-only operation), annotations provide rich details (edgeCaseWarnings, usageExamples), and the description adds return format clarification. However, there is no output schema, and the description could benefit from more detail on output structure or error handling, though annotations partially compensate.

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%, with clear descriptions for nodeId (format, purpose) and property (enum values). The description does not add any additional parameter semantics beyond what the schema provides, such as explaining how property selection affects output or nodeId validation details, so it meets the baseline for high coverage.

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 verb 'Get' and the resource 'text segments with specific styling in a text node', specifying it analyzes style runs within text nodes. This distinguishes it from sibling tools like get_text_style (which likely gets overall text styles) or get_node_info (general node info), making the purpose specific and differentiated.

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 description implies usage for analyzing style runs for advanced formatting, and annotations provide extraInfo reinforcing this context. However, it lacks explicit guidance on when to use this tool versus alternatives like get_text_style or get_node_style, though annotations include edgeCaseWarnings that help with prerequisites (e.g., node must be a valid text node).

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

Related 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/amalinakurniasari/conduit'

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