add_animation
Add an animation with tracks and keyframes to an existing AnimationPlayer node. Ensure the AnimationPlayer exists first via create_animation_player.
Instructions
Add an animation with tracks and keyframes to an existing AnimationPlayer node. To create the AnimationPlayer itself, use create_animation_player first.
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": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>",
"nodePath": "<nodePath>",
"animationName": "<animationName>"
},
"name": "add_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Whether the animation should loop (default: false) | |
| length | No | Animation length in seconds (default: 1.0) | |
| tracks | No | Animation tracks with keyframes | |
| nodePath | Yes | Path to the AnimationPlayer node | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| projectPath | Yes | Path to the Godot project directory | |
| animationName | Yes | Name of the animation to create |