Skip to main content
Glama

flashback_set_keyframes

Create or replace keyframes on one track in a single undoable edit. Set camera, FOV, speed, time-of-day, freeze, shake, orbit, or timelapse values per tick to build animation paths.

Instructions

Create or replace keyframes on one track, as a single undoable edit. A keyframe at an existing tick is replaced. Each keyframe needs "tick" (or "seconds") plus the fields for the track type:

  • CAMERA: {"tick":0,"position":[x,y,z],"yaw":0,"pitch":0,"roll":0} — or "look_at":[x,y,z] instead of yaw/pitch. Same conventions as flashback_set_camera.

  • FOV: {"tick":0,"fov":70}

  • SPEED: {"tick":0,"speed":0.5} (1 = real time)

  • TIME_OF_DAY: {"tick":0,"time":6000} (0-24000; 6000 = noon, 18000 = midnight)

  • FREEZE: {"tick":0,"freeze":true,"freezeDelay":0}

  • CAMERA_SHAKE: {"tick":0,"frequencyX":1,"amplitudeX":1,"frequencyY":1,"amplitudeY":1}

  • CAMERA_ORBIT: {"tick":0,"center":[x,y,z],"distance":10,"yaw":0,"pitch":20}

  • TIMELAPSE: {"tick":0,"ticks":0} — "ticks" is the output time at which this replay tick is reached; between two keyframes the replay is sped up to fit.

  • TRACK_ENTITY: copy the shape of an existing keyframe from flashback_get_timeline. Optional "interpolation" on any keyframe sets how the value moves towards the next keyframe: SMOOTH (spline, default), LINEAR, EASE_IN, EASE_OUT, EASE_IN_OUT, HOLD, HERMITE. A camera path needs at least two CAMERA keyframes; the camera is only driven between the first and last one. Preview with flashback_seek + flashback_screenshot.

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": "flashback_set_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
trackNoTrack index from flashback_get_timeline.
keyframesYesKeyframe objects as described above.
track_typeNoAlternative to track: CAMERA, FOV, SPEED, TIMELAPSE, TIME_OF_DAY, FREEZE, CAMERA_SHAKE, CAMERA_ORBIT, TRACK_ENTITY. Uses the first track of that type.
clear_existingNoRemove every keyframe already on the track first (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does well: it discloses that the whole operation is one undoable edit, that a keyframe at an existing tick is replaced, that clear_existing defaults to false, and that the camera is only driven between the first and last keyframe. It does not cover failure modes such as an invalid track index or supplying both track and track_type.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the one-sentence purpose, then a scannable per-track-type bullet list where each line earns its place. The density is justified by the variety of track types, though the block is long enough that the interpolation and camera-path notes sit far from the top.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The keyframes array is typed only as a generic object with no output schema, so the description must supply the payload contract — and it does, per track type, plus interpolation and the two-CAMERA-keyframe minimum. An agent can construct a valid call without consulting anything else.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, yet the description goes far beyond it by giving a concrete keyframe shape for every track type (CAMERA, FOV, SPEED, TIME_OF_DAY, FREEZE, CAMERA_SHAKE, CAMERA_ORBIT, TIMELAPSE, TRACK_ENTITY) and enumerating the interpolation values with SMOOTH as default. This is exactly the meaning the generic 'items: object' schema cannot express.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource+scope: 'Create or replace keyframes on one track, as a single undoable edit.' It also implicitly distinguishes itself from the camera-only sibling by pointing to 'Same conventions as flashback_set_camera' and from flashback_remove_keyframes by covering replacement semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete workflow routing: copy TRACK_ENTITY keyframe shape from flashback_get_timeline, and 'Preview with flashback_seek + flashback_screenshot.' It also states the precondition that a camera path needs at least two CAMERA keyframes. It stops short of an explicit when-not-to-use rule (e.g. 'use flashback_set_camera if you only touch the camera').

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.