Skip to main content
Glama
Chandelier

Chandelier

by acidka

edit_text

Modify Adobe Illustrator text frames or groups by replacing text, applying paragraph and character properties, and styling specific ranges.

Instructions

Change text frames (refs: text frames or groups containing them). In order: contents (replace all text) → replace {find, with, all (default true), ignore_case} (without refs: in EVERY text frame of the document; keeps the styling of the replaced text) → paragraph props / character props for the whole frame → ranges:[{start, end | match, nth, …props}] to style parts. Props as in create_text. Returns {count, items, edits, overset?}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "edit_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
capsNo
fillNotext colour
fontNofuzzy: "Arial Bold" or a PostScript name
refsNo
sizeNopt
alignNo
colorNosame as fill
rangesNo[{start, end (exclusive; negative = from the end) | match, nth (0-based), ignore_case, ...character/paragraph props}]
strokeNo
leadingNopt or "auto"
replaceNo
contentsNo
trackingNo1/1000 em
underlineNo
hyphenationNo
left_indentNo
space_afterNo
first_indentNo
right_indentNo
space_beforeNo
stroke_widthNo
strikethroughNo
baseline_shiftNo
character_styleNoapplied first, then the props above
paragraph_styleNoapplied first (clears overrides), then the props
horizontal_scaleNo%

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it discloses the document-wide blast radius of an unscoped replace, that contents replaces all text, that replace preserves the replaced text's styling, that paragraph_style clears overrides, and that an overset flag may come back. It still omits reversibility/undo, failure behavior for bad refs, and any permission notes, so it is strong but not complete.

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

Conciseness3/5

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

It is front-loaded with the action and uses a compact arrow chain to convey precedence, which is efficient for a 26-parameter tool. But the telegraphic style (fragments, arrows, ellipses in the ranges sketch) costs readability, and "Props as in create_text" is an indirection the agent must resolve elsewhere.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description supplies the return shape {count, items, edits, overset?} and the overset signal, which is the most decision-relevant output detail. For a mutation tool with 26 params and zero annotations, the missing pieces are error handling, undo semantics, and coverage of the untouched typography parameters.

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 38% across 26 parameters, so the description must compensate. It does explain the interaction order of contents, replace (with find/with/all/ignore_case), frame-wide props, and ranges shape, and defers the long prop list to create_text. Many numeric typography params (leading, tracking, baseline_shift, indents) remain undocumented in both places.

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?

"Change text frames" gives a specific verb and resource, and the parenthetical clarifies that refs may be text frames or groups containing them. It is clearly distinguishable from create_text (which the description references for prop semantics) and from shape/path tools. It stops short of naming a sibling as the alternative for creating rather than editing text.

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?

Usage is implied through the ordering rules (contents → replace → props → ranges), and there is one genuinely valuable caveat: replace "without refs" applies to EVERY text frame in the document. However, there is no explicit statement of when to reach for this versus create_text, nor any prerequisite or exclusion guidance.

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