create_animation_player
Create an AnimationPlayer node in a Godot scene, optionally with pre-configured animations. Specify project and scene paths, then define animation clips to attach.
Instructions
Create an AnimationPlayer node in a scene with optional pre-configured animations. To add animations to an existing player, use add_animation.
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>"
},
"name": "create_animation_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeName | No | Name for the AnimationPlayer (default: 'AnimationPlayer') | |
| scenePath | Yes | Path to the scene file (relative to project) | |
| animations | No | Animations to create with the player | |
| projectPath | Yes | Path to the Godot project directory | |
| parentNodePath | No | Path to the parent node (default: root) |