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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "create_line"
}
}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. |