path_ops
Perform vector path operations in Adobe Illustrator: unite, subtract, intersect, divide, trim, offset, outline strokes or text, trace images, and trap shapes, replacing inputs with results.
Instructions
Path operations (results replace the inputs and become the selection). op: Pathfinder on 2+ items (or one group): "unite" | "minus_front" | "minus_back" | "intersect" | "exclude" | "divide" | "trim" | "merge" | "crop" (a result with several pieces comes back as a group). "outline_stroke" (strokes → filled paths) · "offset" (distance in session units, negative = inwards; joins miter|round|bevel; miter_limit; keep_original) · "expand" (bake appearance/effects) · "outline_text" (text → paths; the name is kept, the uuid changes) · "trace" (images → vector paths; preset e.g. "[Black and White Logo]") · "trap" (spread: an overprinting stroke of each item's own fill colour; distance = trap width, default 0.25 pt). name: names the result when there is one. Returns {count, items}.
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": {
"op": "<op>",
"refs": "<refs>"
},
"name": "path_ops"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| name | No | ||
| refs | Yes | ||
| joins | No | ||
| preset | No | ||
| distance | No | ||
| miter_limit | No | ||
| keep_original | No |