Create Line
create_lineDraw a line between two coordinate points in an Illustrator document, with optional stroke, layer, and naming, without bringing Illustrator to the foreground.
Instructions
Create a line. Runs without activating Illustrator in default background mode; never invokes Computer Use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start point X coordinate | |
| x2 | Yes | End point X coordinate | |
| y1 | Yes | Start point Y coordinate | |
| y2 | Yes | End point Y coordinate | |
| name | No | Object name | |
| stroke | No | Stroke settings | |
| layer_name | No | Target layer name | |
| coordinate_system | No | Coordinate system. Auto-detected from document by default (CMYK/print → document, RGB/web → artboard-web). artboard-web: origin at active artboard top-left, Y-down. document: Illustrator native coords, origin at bottom-left, Y-up. Call get_document_info to check which system is active. |