get_styled_text_segments
Extract styled text segments from a Figma text node, returning selected properties such as font size, font name, line height, and text decoration.
Instructions
Get detailed text segments with all their styling properties
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>",
"fields": "<fields>"
},
"name": "get_styled_text_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Optional end index | |
| start | No | Optional start index | |
| fields | Yes | Text properties to retrieve | |
| nodeId | Yes | The ID of the text node |