add_box
Create a solid collision box for fabric to drape over or rest on, simulating furniture like tables, shelves, beds, or window sills. Define its center and dimensions in millimeters.
Instructions
Add a box that cloth collides with (a table, shelf, bed or window sill...).
Args: center: [x, y, z] centre in mm. size: [width_x, height_y, depth_z] in mm. replace_avatar: Allow replacing a human avatar in the scene.
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": {
"center": "<center>",
"size": "<size>"
},
"name": "add_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| center | Yes | ||
| replace_avatar | No |