Animate Object
animate_objectKeys object transforms and shape keys into a named animation clip on an NLA track for glTF export, replacing existing keys for doors, rotors, and morphs.
Instructions
Key an object's transform and shape keys into a named clip on an NLA track, exported as one glTF animation; a call replaces the object's keys in it. Returns: channels, frames, seconds, Godot warnings. WHEN TO CALL: for doors, rotors, morphs.
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": "<object>",
"clip": "<clip>",
"keys": "<keys>"
},
"name": "animate_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip | Yes | Animation name, shared across objects | |
| keys | Yes | {frame, location, rotation (degrees), scale, shape_key: {name: value}}; null skips an axis | |
| loop | No | Repeat; default as Godot reads the name | |
| object | Yes | Name | |
| interpolation | No | Default linear |