illustrator_path_boolean
Combine or cut Illustrator paths using boolean geometry. Apply unite, subtract, intersect, or xor operations to shape vector artwork, merge forms, and cut holes in fills.
Instructions
Perform boolean operations (subtract, unite, intersect, xor) on paths.
CONTRACT: readOnly=False, destructive=True, idempotent=False, openWorld=False
WHEN TO USE:
Combining shapes (unite), cutting holes (subtract), finding overlaps (intersect)
Any shape sculpting that needs boolean geometry
PIPELINE:
Extract geometry from Illustrator paths (ExtendScript)
Flatten Bezier curves if present (Python)
Run boolean operation via Clipper (Python)
Reconstruct result as PathItem or CompoundPathItem (ExtendScript)
Delete originals on success (if delete_originals=True)
EXAMPLES: Unite: {"params": {"operation": "unite", "subject": "body_id", "clip": ["wing_id"]}} Subtract a hole: {"params": {"operation": "subtract", "subject": "plate_id", "clip": ["hole_id"]}}
NOTES:
Operates on fill geometry only — strokes are ignored (warning emitted)
Simple results produce PathItem; shapes with holes produce CompoundPathItem
Each operand is an MCP ID or a selector resolving exactly one path.
Untagged paths use handle selectors from query/observe; notes are not stamped.
Duplicate/overlapping operands and stale handles are refused before commit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |