Skip to main content
Glama

Set playhead by timecode

set_playhead_timecode
Idempotent

Move a sequence's playhead to a timecode written in the timeline ruler's display format, such as "00:00:04:10". Returns the new position as seconds, frame, and timecode.

Instructions

Move the playhead of a sequence to a timecode written the way the timeline ruler shows it: in the sequence's display format and counted from its start timecode. For example "00:00:04:10" is hours:minutes:seconds:frames. Fails with BAD_ARGS for a string that is not a valid timecode or lies before the sequence start. Makes the sequence active. Returns the position read back as seconds, frame and timecode. Use set_playhead_position for seconds.

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": {
      "timecode": "<timecode>"
    },
    "name": "set_playhead_timecode"
  }
}

Input Schema

NameRequiredDescriptionDefault
timecodeYesTimecode as shown on the timeline ruler, e.g. "00:00:04:10" (";" separators for drop-frame sequences), up to 24 characters.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.7/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses the BAD_ARGS failure mode for malformed or out-of-range timecodes and the side effect that the target sequence becomes active, which is a state change the annotations do not capture. It also summarizes the returned position fields, though it does not say what happens when no sequence is active and none is supplied.

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

Conciseness5/5

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

Four tight sentences, each carrying a distinct payload: format semantics, worked example, failure conditions, side effect, return shape, and sibling routing. The most decision-relevant information (format and the seconds alternative) is front-loaded and last respectively.

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?

Despite having no output schema, the description covers return values, error behavior, side effects, and input format semantics for a three-parameter mutation. Nothing an agent needs in order to call this correctly and interpret the result is missing.

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 100%, so the baseline is 3, but the description adds real semantic meaning: the timecode is interpreted in the sequence's display format and counted from its start timecode, which explains why an apparently valid string can fail. The sequence_id versus sequence_name precedence is left entirely to the schema.

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 and resource ('Move the playhead of a sequence to a timecode') and immediately constrains the input to the ruler's display format. It explicitly contrasts with the sibling set_playhead_position ('for seconds'), so an agent can choose between the two without opening either schema.

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

Usage Guidelines5/5

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

Names the alternative tool and the exact condition that selects it (seconds vs timecode), and adds the precondition that the value must not precede the sequence start timecode. The error outcome for violating that condition is stated, so the boundary is actionable rather than inferred.

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