get_styled_text_segments
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.
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": {
"nodeId": "<nodeId>",
"property": "<property>"
},
"name": "get_styled_text_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The unique Figma text node ID to analyze. Must be a string in the format '123:456'. | |
| property | Yes | The style property to analyze segments by. Must be one of the allowed style property names. |