Skip to main content
Glama

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

NameRequiredDescriptionDefault
xYes
yYes
textYes
styleNo
layer_idNo
object_idNo
layer_nameNo
document_idNoTarget this document instead of the shared active one (recommended when several agents share the server)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and it does disclose useful behavior: the return values bbox (ink bounds) and missing_glyphs, plus font-fallback signalling. It is silent on permissions, whether an update is destructive to prior text properties, or undo/reversibility — significant gaps for a mutation tool with zero annotation coverage.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and layer-targeting rule, then a dense style glossary and the return note. It is long and comma-crammed but nearly every clause carries a distinct, non-obvious specification (px tracking keeps kerning, line_height is baseline-to-baseline).

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?

For an 8-parameter mutation tool with no annotations and no output schema, the description supplies an unusual amount: targeting rules, a full style key reference, anchor semantics, and stated return values. Remaining gaps are the untouched x/y and object_id/layer_id distinction relative to the 13% schema coverage.

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 coverage is only 13%, so the description is the primary documentation and it delivers a detailed breakdown of the untyped style object (font, font_size, color, outline, letter_spacing vs line_height/line_spacing, align, scale, rotation, anchor codes including mm/ls semantics). However x/y, object_id vs layer_id, and the required text parameter get no explanation beyond the anchor note, so compensation is partial.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a concrete verb+resource: 'Create editable Unicode text ... or update object by IDs', and explicitly rules out raster layers, so an agent knows this produces an editable text object. It doesn't name a competing sibling (e.g. paint_shape) for contrast, so it stops short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It does state targeting routes (new layer above active named layer_name, or into text layer_id) and one clear exclusion ('never a raster layer'), which implies when to pick each parameter. But there is no explicit statement of when to use this tool instead of paint_shape or paint_brush, and no prerequisites mentioned.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.