set_animation_keyframe
Set a keyframe at a specific time on an animation track in Godot's AnimationPlayer, enabling precise animation authoring.
Instructions
Set a keyframe in an animation track
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": {
"player_path": "<player_path>",
"animation": "<animation>",
"track_index": "<track_index>",
"time": "<time>"
},
"name": "set_animation_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | Keyframe time in seconds | |
| value | No | Keyframe value | |
| library | No | Animation library name (empty for default) | |
| animation | Yes | Animation name | |
| player_path | Yes | AnimationPlayer node path | |
| track_index | Yes | Track index |