Skip to main content
Glama

Extract a frame

extract_frame
Idempotent

Take one frame of a video already in emero (an upload or a generation) and store it as a new lossless PNG. Returns a job:<uuid>#0 id for generate (reference_image_ids, start_frame_id, end_frame_id). The frame comes from emero's own stored file, which for an iPhone HDR upload is emero's SDR conversion, so a still made from it matches the clip's color. Always use this to make a still from a video for emero: never extract or tone-map frames in your own sandbox. Pass time_seconds or frame_number (0-based). frame_number counts the file's OWN frames at its native fps, which can differ between a clip and its generated version (a Kling 4.0 edit on a 30fps base has come back at 24fps): inspect with include_details, or check_generation, shows each clip's fps and frame count. To compare the same moment across two clips, use time_seconds. Free.

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": {
      "video_id": "<video_id>"
    },
    "name": "extract_frame"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYesupload:<id>, upload:<id>#n or job:<uuid>#0 of a video.
project_idNoOpaque per-chat project id: "p-" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. An agent working in a folder (Claude Code, Codex) uses the folder's .emero.json project_id instead: load_skill("projects").
frame_numberNo
project_nameNoShort human title for the project (2-5 words from the user request, e.g. "Perfume ad campaign"). Pass it on your first generate/ingest_url so the project is not left "Untitled". You may also rename at will later — pass an updated project_name (on a generate/ingest_url, or on set_settings with no other change) whenever the user asks, e.g. "call this project cats".
time_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Opaque per-chat project id: \"p-\" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list."New value: +"Opaque per-chat project id: \"p-\" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. An agent working in a folder (Claude Code, Codex) uses the folder's .emero.json project_id instead: load_skill(\"projects\")."
  2. Changed1 schema field changed
    • changedInput schema / properties / project_id / pattern
      Previous value: -"^p-[a-z0-9]{6}$"New value: +"^[A-Za-z0-9_-]{1,64}$"
  3. Changed1 schema field changed
    • changedInput schema / properties / project_id / pattern
      Previous value: -"^[A-Za-z0-9_-]{1,64}$"New value: +"^p-[a-z0-9]{6}$"
  4. Added

TDQS

A4.5/5.0
Behavior4/5

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

Adds real context beyond the annotations: the output artifact is a lossless PNG, the return value is a job:<uuid>#0 id usable as reference_image_ids/start_frame_id/end_frame_id, the source is emero's stored file (SDR conversion for iPhone HDR, so color matches), and the call is free. What it leaves implicit is the execution model — whether the returned job id means the PNG is ready immediately or must be polled, which matters for a write tool with readOnlyHint=false.

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-loads the core action and result in the first two sentences, then adds caveats in decreasing order of importance. Slightly dense with parenthetical asides (Kling 4.0 at 24fps on a 30fps base), but every sentence contributes a decision-relevant fact rather than restating the name.

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 mutating tool with no output schema, it supplies the return-value shape, cost, and color-provenance caveat, which is most of what an agent needs. The remaining gap is the async story around the job id and whether the extracted PNG is addressable afterward — relevant given the sibling list includes check_generation.

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?

With only 60% schema coverage, the description carries the undocumented parameters well: frame_number is 0-based and counts the file's OWN frames at its native fps, which may differ from a generated version, and time_seconds is the stable choice for cross-clip comparison. It does not define time_seconds' origin or precision, and it never clarifies that video_id must reference an already-ingested video rather than a local path.

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 ('Take one frame of a video already in emero and store it as a new lossless PNG'), plus the required precondition that the video already lives in emero (an upload or a generation). It also names the adjacent tools (inspect with include_details, check_generation) for the fps question, so an agent can separate this from inspection siblings without opening schemas.

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?

Gives an explicit directive with an exclusion: 'Always use this to make a still from a video for emero: never extract or tone-map frames in your own sandbox.' It also routes between the two selection modes — frame_number for native-frame addressing versus time_seconds when comparing the same moment across two clips.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.