paint_text
Create editable Unicode text layers or update existing text objects with custom fonts, colors, spacing, alignment, and transforms; returns ink bounds and missing-glyph warnings.
Instructions
Create editable Unicode text (a new text layer above the active layer named layer_name, or into the text layer layer_id - never a raster layer), or update object by IDs. Style: font(name/path),font_size,color,outline_width,outline_color,letter_spacing(px tracking, keeps kerning),line_height(absolute px baseline-to-baseline) or line_spacing(extra px gap),align(left/center/right/justify),scale_x,scale_y,rotation(clockwise degrees),anchor(lt default; l/m/r + t/m/b/s; mm centres on x,y; ls puts the first baseline on y). Returns bbox (ink bounds) and missing_glyphs if the font lacks characters.
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": {
"text": "<text>",
"x": "<x>",
"y": "<y>"
},
"name": "paint_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| text | Yes | ||
| style | No | ||
| layer_id | No | ||
| object_id | No | ||
| layer_name | No | ||
| document_id | No | Target this document instead of the shared active one (recommended when several agents share the server) |