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
| Name | Required | Description | Default |
|---|---|---|---|
| caps | No | ||
| fill | No | text colour | |
| font | No | fuzzy: "Arial Bold" or a PostScript name | |
| refs | No | ||
| size | No | pt | |
| align | No | ||
| color | No | same as fill | |
| ranges | No | [{start, end (exclusive; negative = from the end) | match, nth (0-based), ignore_case, ...character/paragraph props}] | |
| stroke | No | ||
| leading | No | pt or "auto" | |
| replace | No | ||
| contents | No | ||
| tracking | No | 1/1000 em | |
| underline | No | ||
| hyphenation | No | ||
| left_indent | No | ||
| space_after | No | ||
| first_indent | No | ||
| right_indent | No | ||
| space_before | No | ||
| stroke_width | No | ||
| strikethrough | No | ||
| baseline_shift | No | ||
| character_style | No | applied first, then the props above | |
| paragraph_style | No | applied first (clears overrides), then the props | |
| horizontal_scale | No | % |