Add Keyframe Animation
capcut_add_keyframeAdd keyframe-based property animations to video tracks using property types like scale, alpha, rotation, and position with interpolated values.
Instructions
Add keyframe-based property animation to tracks.
This tool creates smooth animations by interpolating between keyframe values.
Args:
draft_id (string): The draft ID
track_name (string): Name of track to animate
property_types (string[]): Properties to animate (scale_x, scale_y, alpha, rotation, position_x, position_y)
times (number[]): Keyframe times in seconds (at least 2)
values (string[]): Values for each keyframe (same length as times)
response_format ('markdown' | 'json'): Output format
Examples:
Fade in: property_types=["alpha"], times=[0, 2], values=["0.0", "1.0"]
Zoom in: property_types=["scale_x", "scale_y"], times=[0, 2], values=["0.5", "1.5"]
Rotate: property_types=["rotation"], times=[0, 3], values=["0", "360"]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draft_id | Yes | The ID of the draft to add keyframes to | |
| track_name | Yes | Name of the track to animate | |
| property_types | Yes | Properties to animate (e.g., scale_x, scale_y, alpha, rotation) | |
| times | Yes | Keyframe times in seconds | |
| values | Yes | Values for each keyframe | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |