add_keyframe
Add a keyframe to a layer property track, creating the track if it doesn't exist. Specify layer, property, frame, value, and easing.
Instructions
Add a keyframe to a layer property track. Creates the property track if it doesn't exist.
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>",
"propertyPath": "<propertyPath>",
"frame": "<frame>",
"value": "<value>"
},
"name": "add_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Layer ID | |
| propertyPath | Yes | Property to keyframe (e.g., transform.position.x) | |
| frame | Yes | Frame number | |
| value | Yes | Keyframe value | |
| easing | No | Easing curve (defaults to linear) |