illustrator_path_import_svg
Import SVG path 'd' data into the active Adobe Illustrator document, parsing d strings and converting arcs to cubic Beziers for complex shapes.
Instructions
Import an SVG path d attribute into the active document.
CONTRACT: readOnly=False, destructive=False, idempotent=False, openWorld=False
WHEN TO USE:
Importing existing SVG path data (d strings) into Illustrator
Complex outlines, organic shapes, arcs described in SVG syntax
EXAMPLES: illustrator_path_import_svg(d="M 10 50 C 20 20, 80 20, 90 50 Z") illustrator_path_import_svg(d="M 0 0 L 100 0 L 100 100 Z", fill={r: 255, g: 0, b: 0})
NOTES:
Parses SVG d string server-side, converts arcs to cubic Beziers
Safety limits: 50,000 chars, 5,000 segments, 100 subpaths, +/-100,000 coords
Returned bounds are [left, top, right, bottom] in Illustrator's native Y-up space
For new shapes prefer illustrator_execute_task + element_create with smooth:true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |