add_mujoco_scene_object
Adds a sphere, box, or capsule primitive to a running MuJoCo scene without clearing existing objects, using millimeter positions, sizes, dynamics, mass, and optional friction.
Instructions
Add one primitive to the running MuJoCo scene without removing the others.
position_mm is [x, y, z] in millimeters. shape is sphere,
box, or capsule. size_mm is [radius] for a sphere,
[radius, half_length] for a capsule, or three half-extents for a box, in mm.
A weight means dynamic=true and mass_g in grams. Optional friction
is [sliding, torsional, rolling]; omit it to keep MuJoCo's default contact.
Reusing object_id replaces that object.
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_id": "<object_id>",
"shape": "<shape>",
"size_mm": "<size_mm>",
"position_mm": "<position_mm>",
"dynamic": "<dynamic>"
},
"name": "add_mujoco_scene_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rgba | No | ||
| shape | Yes | ||
| mass_g | No | ||
| dynamic | Yes | ||
| size_mm | Yes | ||
| friction | No | ||
| object_id | Yes | ||
| position_mm | Yes | ||
| controller_id | No | mujoco |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||