set_animation
Play an imported animation on a specified armature and optionally set the scene frame range to match it. Loops automatically when the animation is shorter than the scene.
Instructions
Play one of the imported animations (loops automatically if shorter than 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": {
"object_name": "<object_name>",
"action": "<action>"
},
"name": "set_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| play | No | ||
| action | Yes | Part of the animation name, e.g. 'walk', 'idle', 'run' | |
| object_name | Yes | Armature (or its root) returned by import_asset | |
| fit_frame_range | No | Set the scene frame range to this animation (use false for the 2nd+ character) |