armature_add_constraint
Add a constraint to a pose bone, supporting types like copy location, rotation, IK, and more. Specify armature, bone, constraint type, and optional target.
Instructions
Add a constraint to a pose bone.
Args: armature_name: Armature containing the bone bone_name: Bone to constrain constraint_type: COPY_LOCATION, COPY_ROTATION, COPY_SCALE, TRACK_TO, DAMPED_TRACK, IK, LIMIT_ROTATION, STRETCH_TO, FLOOR, CHILD_OF target_armature: Target armature object (for bone targets) target_bone: Target bone name params: Additional constraint parameters dict
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": {
"armature_name": "<armature_name>",
"bone_name": "<bone_name>",
"constraint_type": "<constraint_type>"
},
"name": "armature_add_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| bone_name | Yes | ||
| target_bone | No | ||
| armature_name | Yes | ||
| constraint_type | Yes | ||
| target_armature | No |