Add several keyframes
add_keyframesAdds a batch of time/value keyframes to one effect parameter, updating any keyframe at an existing time and optionally replacing current keyframes.
Instructions
Add a batch of keyframes (time/value pairs, optional interpolation each) to one effect parameter; turns animation on if needed. A keyframe at an existing keyframe's time updates it. With replace_existing the parameter's current keyframes are removed first. Returns added, removed_existing and the resulting keyframe list (index, time, value).
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": {
"keyframes": "<keyframes>"
},
"name": "add_keyframes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clip_id | No | Stable clip id (from get_sequence_structure / list_clips). Preferred. | |
| keyframes | Yes | Keyframes to add, each {time, value, interpolation?}. | |
| time_base | No | How times are measured. "sequence" (default): sequence time, seconds from the start of the timeline. "clip": clip source time, seconds from the start of the source media (the unit Premiere stores keyframes in). Times in the result use the same base. The sequence-to-source conversion ignores clip speed: on a speed-changed or reversed clip use "clip". | |
| clip_index | No | 0-based index of the clip in its track's clip list, as reported by list_clips / get_sequence_structure. Usually time order, but a moved clip can keep its old index, and indices shift after edits: prefer clip_id. | |
| param_name | No | Parameter display name, case-insensitive, e.g. "Blurriness". The first match is used. Ignored when param_index is given. | |
| track_type | No | Used with track_index + clip_index when clip_id is not given. Default "video". | |
| effect_name | No | Effect display name or match name, case-insensitive, e.g. "Gaussian Blur" or "Motion". The first match is used. Ignored when effect_index is given. | |
| param_index | No | 0-based parameter index (from get_effect_parameters). Required for parameters with an empty display name. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| track_index | No | 0-based track index (0 = V1 or A1). | |
| effect_index | No | 0-based index of the effect in the clip's effect list (from list_clip_effects). Use it when the clip has two effects with the same name. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| replace_existing | No | Remove the parameter's existing keyframes first. Default false. |