create_text
Create styled text frames in Adobe Illustrator at points, in areas, or on paths, with batch and grid support for labels, tables, and calendars.
Instructions
Create text frames. Atomic: if styling fails the frame is removed. point (x, y; y = first BASELINE unless y_ref:"top"; align left|center|right anchors at x) · area (x, y, w, h; reports overset) · path (on_path = a path ref; keep_path copies it). kind defaults from the props given. Character: font (fuzzy), size, fill/color, stroke, leading, tracking, baseline_shift, underline, strikethrough, caps, horizontal_scale, character_style. Paragraph: align, paragraph_style, space_before/after, indents, hyphenation (sizes in pt). Placement: layer or parent. Many at once: items:[{text, x, y, …}] with shared props at the top level, or grid {x, y, cols, dx, dy, cells, col_props} for tables and calendars (x, y = first cell; align applies per cell). Returns {count, items:[{uuid, name, type, box}], 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": "create_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| w | No | ||
| x | No | ||
| y | No | ||
| caps | No | ||
| fill | No | text colour | |
| font | No | fuzzy: "Arial Bold" or a PostScript name | |
| grid | No | ||
| kind | No | ||
| name | No | ||
| note | No | ||
| size | No | pt | |
| text | No | "\n" starts a new paragraph | |
| align | No | ||
| blend | No | multiply, screen… (blend mode) | |
| color | No | same as fill | |
| items | No | many at once: props as above; top-level ones are shared defaults | |
| layer | No | name (created if missing; stays inactive) or @active | |
| y_ref | No | ||
| hidden | No | ||
| locked | No | ||
| parent | No | group ref or "layer:Name" | |
| stroke | No | ||
| leading | No | pt or "auto" | |
| on_path | No | ||
| opacity | No | ||
| tracking | No | 1/1000 em | |
| keep_path | No | ||
| 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 | % |