Skip to main content
Glama

generate_shot_frame

Fix a shot's visual by generating or regenerating its frame while preserving character, scene, and style consistency. Requires a confirmed quote_id to replace the existing frame.

Instructions

确认后给某一镜出帧或重生该帧(异步)。这是修某一镜画面的正路:平台会带上该镜的角色身份锚、场景/道具参考图、画风锚与帧审计,重生出的图与全片一致;用外部工具出图再上传会绕开这整条链路,人物/服装/画风必漂。重生会覆盖该帧现有图(含此前上传的),并把本镜视频标为待重生。尾帧需本镜首帧已就绪(否则先用 first_frame 或 both)。完成判据:轮询 get_storyboards 看该镜 first_frame_image/last_frame_image 变化。 ★继承重开(reopen_pair_id):get_storyboards 某镜带这个字段时,原样传进来可以只重掷首尾帧里真正有问题的那一侧——另一侧此前已经生成好的候选原样保留,不重新生成、不重新计费。传了它就不用再传 frame_type(会被忽略,由平台判定该重哪一侧);quote_id 仍要用 quote_shot_frame 报价(frame_type 传 first_frame 或 last_frame 均可,单帧同价)。若该镜没有 reopen_pair_id 字段(不满足继承条件),这个参数不要传,走常规 frame_type 重试。⚠️ 批量报价确认流程:先调对应的 quote_* 工具,把返回的 estimated_points 原样告诉用户,用户明确同意后,才用返回的 quote_id 调本工具。不要擅自确认。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quote_idYes来自 quote_shot_frame
frame_typeNo默认 first_frame,须与报价时一致;传了 reopen_pair_id 时会被忽略
image_modelNo临时覆盖本次重画的图片模型(不传=用 drama 级设定,默认香蕉2);取值同 generate_frames
storyboard_idYes
reopen_pair_idNo来自 get_storyboards 该镜的同名字段;只重掷有问题的那一侧,不必再传 frame_type
replace_user_frameNo默认 true(显式重生允许覆盖已上传帧);传 false 则保护已上传帧

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.57

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations, the description carries the full behavioral burden, and it delivers: it discloses that regeneration overwrites existing frame images, marks the shot video as pending regeneration, preserves the unaffected side when reopen_pair_id is used, does not re-bill for preserved candidates, and explains completion via polling get_storyboards. It also warns against unauthorised confirmation, making side effects and process risks clear.

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?

The description is dense but well-organized: the core action and side effects come first, followed by the reopen_pair_id inheritance flow, then the mandatory quote confirmation warning. Every sentence carries operational meaning; the length is justified by the tool's complexity and the need to prevent incorrect retry or billing behavior.

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 tool with no output schema and a complex asynchronous workflow, the description is remarkably complete. It covers prerequisites, side effects, overwrite behavior, billing implications, the exact polling completion condition, and the required quote confirmation ritual. An agent has enough context to call the tool correctly in both the normal and reopen_paths.

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 description coverage is 83%, so the baseline is already decent. The description adds real semantic value beyond the schema by explaining how reopen_pair_id interacts with frame_type, how quote_id must be obtained and matched, and the default behavior for image_model. The only notable gap is storyboard_id, which has no schema description and is not explicitly explained in the description, though its meaning is inferable from the tool's context.

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?

The description opens with a specific verb and resource: generating or regenerating a frame for a single shot, and says it is asynchronous. It distinguishes itself from the external 'generate + upload' path, explicitly positioning this tool as the correct way to fix a shot's frame, which differentiates it from sibling upload tools like upload_shot_frame.

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?

The description gives explicit when-to-use guidance: use this instead of external tools because they break consistency; use reopen_pair_id only when get_storyboards returns that field, otherwise use normal frame_type retry. It also gives a concrete prerequisite for tail frames and mandates the quote-before-call flow, so an agent knows exactly when and how to invoke it.

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