format_text_range
Format exactly one character range in a text layer or editable sticker/element label. Read get_panel first. start/end are zero-based UTF-16 offsets in the displayed text or label (end exclusive), so repeated words, emoji and token-resolved captions can be targeted precisely. Apply bold, italic, underline, font, size, text colour or highlight; set clear=true to restore selected characters to whole-text style. Saves atomically and returns an immediate draft preview.
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": {
"projectId": "<projectId>",
"expectedRevision": "<expectedRevision>",
"position": "<position>",
"layerId": "<layerId>",
"start": "<start>",
"end": "<end>"
},
"name": "format_text_range"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| clear | No | ||
| start | Yes | ||
| style | No | ||
| family | No | iphone | |
| locale | No | Omit for the project’s main localization. | |
| layerId | Yes | ||
| maxSide | No | ||
| preview | No | ||
| position | Yes | ||
| projectId | Yes | ||
| expectedRevision | Yes |