Set animation
clip.set_animationEntrance, exit and loop presets layered over the clip transform (video://catalog/animations): e.g. in {name: "pop", duration_frames: 12}, loop {name: "float"}; a loop runs the whole clip, or only from_frame to to_frame of it (loop {name: "shake", from_frame: 30, to_frame: 45} for a jolt). null removes one. Returns the new timeline_id (edit that one next), what changed, and where each changed clip now sits.
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": {
"clip_id": "<clip_id>",
"timeline_id": "<timeline_id>"
},
"name": "clip.set_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| in | No | Entrance, from the clip start | |
| out | No | Exit, ending at the clip end | |
| loop | No | Repeats over the clip, or over from_frame to to_frame of it | |
| clip_id | Yes | ||
| preview | No | inline: image in the result; link: URI that renders on read; none | link |
| timeline_id | Yes | Timeline handle; every edit returns a new one |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent | Yes | The version this edit started from | |
| changed | Yes | What the edit added, removed or modified; a clip or transition says its track and where it now sits (frames, end exclusive) | |
| clip_id | No | The clip this edit made or acted on (each tool says which) | |
| preview | Yes | ||
| clip_ids | No | Every clip this edit made or acted on, linked ones included (each tool says which) | |
| track_id | No | ||
| warnings | Yes | ||
| placements | No | Where each clip the edit moved, cropped, masked or animated shows, sequence pixels; for a title or caption, the area it can draw in, not the text itself | |
| timeline_id | Yes | The new version: edit this one next (older ids stay valid) |