illustrator_path_import_svg
Import SVG path data (d strings) into an active Illustrator document, converting arcs to cubic Beziers and applying optional fill, stroke, and metadata.
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: A curve: {"params": {"d": "M 10 50 C 20 20, 80 20, 90 50 Z"}} Filled red: {"params": {"d": "M 0 0 L 100 0 L 100 100 Z", "fill": {"r": 255, "g": 0, "b": 0}}} Stroked with no fill: { "params": { "d": "M 0 0 L 50 50 L 100 0", "stroke": { "r": 0, "g": 0, "b": 0, "width": 2 }, "fill": false } } With an explicit id for later targeting: {"params": {"d": "M 0 0 L 100 0 L 100 100 Z", "id": "triangle"}}
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
fill/stroke: None=leave default, False=force off, {r,g,b}=force color
id: must be unique; collision with existing @mcp:id raises an error
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |