animation_set_keyframe
Set a keyframe on a specific animation track at a defined time with a given value to control animation properties.
Instructions
Set a keyframe in an animation track.
Category: Animation
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) animation_name: Name of the animation track_index: Index of the track (0-based) time: Time position for the keyframe in seconds value: Value for the keyframe (JSON string for complex values)
Returns: Success message or error description
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": {
"project_path": "<project_path>",
"scene_path": "<scene_path>",
"animation_name": "<animation_name>",
"track_index": "<track_index>",
"time": "<time>",
"value": "<value>"
},
"name": "animation_set_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| animation_name | Yes | ||
| track_index | Yes | ||
| time | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |