add_modifier
Adds box or cylinder modifiers, negative volumes, and support blockers/enforcers to an object within a Z range or XY region to control slicing locally.
Instructions
Add a part to an object, covering its whole footprint between z_from and z_to (mm from the object's bottom; z_to 0 = top), or only region [x0, y0, x1, y1] (mm from the object's center). kind: modifier (different settings inside, e.g. {"sparse_infill_density": "100%"} for the top 5 mm), negative (removes material), support_blocker, support_enforcer. shape: box, or cylinder (round, as wide as the smaller side of the region: e.g. a hole for a magnet or a screw is kind='negative', shape='cylinder', region=[-4, -4, 4, 4] for 8 mm).
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": {
"object": "<object>"
},
"name": "add_modifier"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | modifier | |
| z_to | No | ||
| shape | No | box | |
| object | Yes | ||
| region | No | ||
| z_from | No | ||
| settings | No |