Skip to main content
Glama

Convert audio to keyframes

audio_to_keyframes

Converts an audio layer into an Audio Amplitude null, keying Left, Right, and Both Channels every frame so animations can be linked to sound.

Instructions

Run Animation > Keyframe Assistant > Convert Audio to Keyframes for one audio layer: opens the comp in the viewer, selects only that layer and creates an 'Audio Amplitude' null with Left/Right/Both Channels sliders keyed every frame. Returns the new layer, slider property paths and an expression to link to. The work area is temporarily set to the layer's span unless fullLayer=false.

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": {
      "layer": "<layer>"
    },
    "name": "audio_to_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
nameNoRename the created amplitude layer.
layerYesLayer with audio.
fullLayerNoAnalyse the whole layer (default true) instead of the current work area.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare readOnly=false and destructive=false; the description adds the real behavioral payload: it opens the comp in the viewer, changes the current layer selection, creates a new null layer with keyframes on every frame, and temporarily alters the work area. It also discloses what is returned, which the absent output schema would otherwise leave unknown.

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?

Three dense sentences with no filler, front-loaded with the action and UI path before the side effects. Slightly heavy clause packing (menu path + null structure + slider names in one sentence) but nothing is wasted.

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?

For a mutating tool with no output schema, the description covers preconditions, side effects, the fullLayer default, and the shape of the return value (layer, property paths, expression). Nothing an agent needs to call it correctly is missing.

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

Parameters3/5

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

Schema coverage is 100%, so all four parameters are already documented in the schema. The description reinforces layer scope and the fullLayer/work-area interaction, but adds no syntax or format detail for comp, name, or layer addressing beyond what the schema states.

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?

Names a specific action (convert audio to keyframes for one audio layer), the exact UI path, and the concrete artifact produced ('Audio Amplitude' null with Left/Right/Both Channels sliders keyed every frame). This is clearly distinguishable from siblings like convert_expression_to_keyframes or get_audio_info without opening any schema.

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?

Establishes scope and preconditions well ('for one audio layer', layer must have audio) and explains the fullLayer=false case as analysing only the current work area. It does not explicitly route the agent to alternatives (e.g. use get_audio_info first to inspect levels), so it stops short of full when/when-not guidance.

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