boolean_operation
Perform boolean operations (union, difference, intersection) on two solids. Returns result geometry and bounding box for verification.
Instructions
Perform a boolean operation (union / difference / intersection) on two solids.
difference = target minus tool. Operating on an instance of a shared definition consumes only that instance — the result is a new group, sibling instances are untouched. Unreliable on non-manifold geometry.
Returns: JSON {id, name, type, bbox_mm{min,max}|null}. Read bbox_mm to verify the result; it is null for empty geometry (e.g. a difference that consumed the whole body).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool_id | Yes | Entity ID from a previous response (integer or its string form) | |
| operation | No | union, difference (target minus tool), or intersection | union |
| target_id | Yes | Entity ID from a previous response (integer or its string form) | |
| delete_originals | No | erase the two source bodies after a successful operation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |