Skip to main content
Glama

markers_to_keyframes

Convert timed markers into animation by setting layer in/out points or inserting keyframes at each marker time, completing the caption pipeline after transcription and marker creation.

Instructions

Turn timed markers into animation — closes the caption pipeline after whisper_transcribe + add_markers_batch. mode="inout" (default): set each target layer's in/out points to consecutive marker times (per-word/per-line reveals). mode="keyframe": drop a key on prop at every marker time (value from value, or the sampled current value), optionally HOLD-interpolated. Markers read from markerLayer, else comp markers.

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": {
      "layers": "<layers>"
    },
    "name": "markers_to_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name, numeric id, or { id: N } for duplicate-name-safe stable-id addressing.
holdNomode=keyframe: HOLD interpolation
modeNo
propNomode=keyframe: property to key
valueNomode=keyframe: value to set (else samples current)
layersYestarget layers (names/indices)
instanceNoTarget a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances.
markerLayerNolayer to read markers from (name, index, or { id: N }); omit for comp markers
lastDurationNomode=inout: last layer out = its in + this (else comp end)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/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 substantial work: it discloses that mode=inout rewrites layer in/out points while mode=keyframe writes property keys, that values are sampled from the current state when `value` is omitted, and that HOLD interpolation is optional. The main undisclosed behavior is what happens to pre-existing in/out points or keyframes at those times (overwrite vs. merge), which matters for a mutation tool.

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 purpose, then split cleanly into the two modes with the default flagged inline. The dense backtick notation and semicolon chaining are efficient but slightly terse for an agent parsing parameter roles on first read.

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

Completeness4/5

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

For a 9-parameter mutation tool with no annotations and no output schema, the description covers mode semantics, marker sourcing, and default value sampling well enough to invoke correctly. It stops short of describing return values or the effect on existing in/out points and keyframes, which is the remaining meaningful gap.

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

Parameters4/5

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

Schema coverage is already 89%, so baseline is 3, but the description adds real meaning by binding parameters to modes: `prop`/`value`/`hold` are keyframe-only, `lastDuration` governs the final inout layer, and `markerLayer` has a documented fallback to comp markers. That mode-to-parameter mapping is not expressed in the schema itself.

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?

States a specific verb+resource ("Turn timed markers into animation") and immediately disambiguates its two operating modes, so an agent knows exactly what transformation happens. It also positions itself in a pipeline relative to whisper_transcribe and add_markers_batch, which no other sibling name suggests.

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 clear when-to-use context: it is the closing step after whisper_transcribe + add_markers_batch, and it explains that markers come from markerLayer or fall back to comp markers. It does not explicitly rule out alternatives such as add_keyframe or copy_keyframes for hand-authored animation, but the pipeline framing makes the intended use unambiguous.

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

Deploy Server

Other Tools