Add a joint
add_jointJoins two parts with a joint where they stand now - nothing moves. revolute turns the child about the axis (a wheel on its axle, a hinge, a servo's output); slider moves it along the axis (a carriage on a rail); cylindrical does both; ball turns it any way about the point; rigid fixes the two together. at is a world point on the axis in mm and axis its direction: for a wheel, its hub's centre and the axle's direction, from what insert_part returned. limits stop it where the real joint stops, in degrees for revolute and mm for slider, from where it stands now; a revolute joint without limits turns all the way round, as a wheel or a rotor does. The user can then drag each joint to check it, and Export Robot writes a joint of URDF, MJCF and SDF for each.
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": {
"type": "<type>",
"child": "<child>",
"parent": "<parent>"
},
"name": "add_joint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | A world point on the axis, [x, y, z] mm; for ball its centre. Not needed for rigid. | |
| axis | No | The axis direction [x, y, z]: revolute, slider and cylindrical need it. | |
| name | No | A name for the joint, e.g. left_wheel. | |
| type | Yes | ||
| child | Yes | The part that moves, by name. | |
| limits | No | How far it goes each way from where it stands now (revolute and slider). | |
| parent | Yes | The part it moves on, by name. | |
| in_part | No | Points and directions in this part's coordinates, as it stands now; default the world. |