cavalry_set_keyframe
Set animation keyframes on a layer at a given frame by specifying attribute values. Use this to define motion properties such as position or scale.
Instructions
Sets an animation keyframe for attributes on a layer at a given frame number using Cavalry's official api.keyframe(layerId, frame, { attr: value }) API.
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": {
"layerId": "<layerId>",
"frame": "<frame>",
"attributes": "<attributes>"
},
"name": "cavalry_set_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes | The frame number where the keyframe should be set. | |
| layerId | Yes | The layer ID. | |
| attributes | Yes | Key-value dictionary of attributes and their values at this keyframe (e.g. {'position.y': 50, 'scale.x': 1.25}). |