illustrator_path_boolean
Perform boolean operations (unite, subtract, intersect, xor) on Illustrator paths to sculpt shapes, cut holes, or find overlaps.
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: illustrator_path_boolean(operation="unite", subject="body_id", clip=["wing_id"]) illustrator_path_boolean(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
Subject and clip identified by MCP ID (@mcp:id in item.note)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |