styles
List, create, update, apply, or remove Adobe Illustrator paragraph, character, and graphic formatting definitions to keep text and object appearance consistent.
Instructions
Paragraph, character and graphic styles (kind, default "paragraph"). action: "list" (names; spec = the props this tool stored for styles it made — Illustrator can't report style attributes safely) · "create" (name + props; refs applies it right away) · "update" (name + props to change; new_name) · "apply" (name, refs: text frames or groups; character styles can target match text; clear_overrides default true) · "remove". Paragraph props: font, size, fill/color, leading, tracking, caps, … + align, space_before/after, indents, hyphenation. Character props: the font/colour ones. Graphic styles: list and apply only (they can't be created from scripts).
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": "styles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| caps | No | ||
| fill | No | text colour | |
| font | No | fuzzy: "Arial Bold" or a PostScript name | |
| kind | No | ||
| name | No | ||
| refs | No | ||
| size | No | pt | |
| align | No | ||
| color | No | same as fill | |
| match | No | ||
| action | No | ||
| stroke | No | ||
| leading | No | pt or "auto" | |
| new_name | 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 | ||
| clear_overrides | No | ||
| horizontal_scale | No | % |