Skip to main content
Glama

preview dialogue edits

dialogue-previews_create
Destructive

Create an audio preview by re-synthesizing user-approved transcript edits and removals in the original speaker's voice, returning a preview job ID and status.

Instructions

Start an Edit Dialogue audio preview: re-synthesize user-approved word changes and removals from a saved single-speaker video's transcript in the original speaker voice, returning the preview job (id, status). Not for translation (dubbing_create), another voice or a new full script (lipsync_create with a script, or speech-previews_create), or the final video (dialogue-videos_create). May clone the source speaker voice and incur synthesis charges; confirm the edits and permission to use that voice before creating. The tool first checks that the transcription (COMPLETED) or previous preview (COMPLETED or COMPLETED_PARTIAL) was made from this source video, and fails otherwise; it adds a preview job and never overwrites the source. Next, poll dialogue-previews_get with the id and disclose any COMPLETED_PARTIAL shortfall; after the user approves the audio, quote the final video with dialogue-videos_estimate. When dialogue_get-options reports keyedPreview, persist an idempotencyKey before creating (sending one otherwise fails); recover only through an explicit retry of identical input with that same key, and never retry an ambiguous creation automatically. With projectId, projectIntent=explicit is required; default new work to a new project.

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": {
      "projectId": "<projectId>",
      "videoAssetId": "<videoAssetId>",
      "edits": "<edits>"
    },
    "name": "dialogue-previews_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsYesThe complete list of user-approved changes/removals for this preview (1 to 100), including earlier ones to keep when revising. Word ids come from the COMPLETED transcription's transcript, or from the previous preview's sourceTranscript, never its resultTranscript.
projectIdYesProject for the preview, the one used for the transcription. Keep unchanged on retries. Default new work to a new project: the id projects_create returned for this request (defaultWorkflow edit_dialogue). Use an existing project only when the user explicitly chose it, and then pass projectIntent=explicit.
videoAssetIdYesSaved VIDEO asset for the transcription or prior preview, accessible to the connected account.
projectIntentNoRequired with projectId. Set only for an explicit user project selection/update, or the new project just created for this request. Never infer intent from a matching project name, workflow name or active editor.
idempotencyKeyNoPersist a unique key before creation when dialogue_get-options reports keyedPreview. Reuse only with identical inputs for an explicitly requested retry.
organizationIdNoRun only this call in another of the user’s Sync organizations, by id from organizations_list, when the user asks for it (for example “generate this in the Acme org”). The session keeps its organization; reads of the ids this call returns stay in this organization. Omit to use the session’s organization.
transcriptionIdNoDeprecated alias of transcriptionJobId.
previousPreviewIdNoId of a COMPLETED or COMPLETED_PARTIAL preview of this source, to revise it. Its sourceTranscript and cloned voice are reused, but its edits are not carried over, so edits must be the full set you want; sending the same edits again reruns it. Supply exactly one of previousPreviewId or transcriptionJobId.
transcriptionJobIdNoId from dialogue-transcriptions_create, for a first preview; that transcription must be COMPLETED. Supply exactly one of transcriptionJobId or previousPreviewId.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.4
    • changedInput schema / properties / edits / description
      Previous value: -"User-approved changes/removals referencing timed word IDs in the source transcript."New value: +"The complete list of user-approved changes/removals for this preview (1 to 100), including earlier ones to keep when revising. Word ids come from the COMPLETED transcription's transcript, or from the previous preview's sourceTranscript, never its resultTranscript."
    • changedInput schema / properties / previousPreviewId / description
      Previous value: -"Completed or partially completed preview ID for this source when reopening. Supply exactly one of previousPreviewId or transcriptionJobId."New value: +"Id of a COMPLETED or COMPLETED_PARTIAL preview of this source, to revise it. Its sourceTranscript and cloned voice are reused, but its edits are not carried over, so edits must be the full set you want; sending the same edits again reruns it. Supply exactly one of previousPreviewId or transcriptionJobId."
    • changedInput schema / properties / projectId / description
      Previous value: -"Accessible Sync project for the preview. Keep unchanged on retries."New value: +"Project for the preview, the one used for the transcription. Keep unchanged on retries. Default new work to a new project: the id projects_create returned for this request (defaultWorkflow edit_dialogue). Use an existing project only when the user explicitly chose it, and then pass projectIntent=explicit."
    • changedInput schema / properties / transcriptionJobId / description
      Previous value: -"Completed transcription ID for this source. Supply exactly one of transcriptionJobId or previousPreviewId."New value: +"Id from dialogue-transcriptions_create, for a first preview; that transcription must be COMPLETED. Supply exactly one of transcriptionJobId or previousPreviewId."
  2. Addedv0.1.5

TDQS

A4.4/5.0
Behavior3/5

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

Rich beyond annotations: discloses voice cloning and synthesis charges, a precondition check that the transcription or prior preview was made from this source video, that it adds a job and never overwrites the source, and the keyedPreview/idempotency-key retry semantics with a prohibition on automatic retry of ambiguous creation. However, it says 'never overwrites the source' while annotations declare destructiveHint=true, and the description never explains what that irreversible/destructive dimension actually is (cost, job creation, voice cloning persistence) — a gap given tl;dr-level contradiction risk.

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 purpose before exclusions and procedure, and nearly every clause carries routing, cost, or precondition information. It is dense to the point of being a wall of semicolons — the validation, polling, and idempotency rules could be split into tighter sentences for faster parsing.

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?

No output schema exists, yet the description states the return value (preview job id and status) and the follow-up calls needed to complete the workflow. For a 9-parameter, charge-incurring mutation tool, the preconditions, exclusivity rules, and failure modes are all covered.

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 baseline is 3; the description still earns a bump by tying idempotencyKey to a runtime signal (dialogue_get-options keyedPreview) and stating that projectIntent=explicit is required with projectId plus a new-project default. The edits semantics ('complete list... including earlier ones to keep when revising') are largely mirrored in the schema text, which limits additional value.

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: 'Start an Edit Dialogue audio preview: re-synthesize user-approved word changes and removals from a saved single-speaker video's transcript in the original speaker voice,' and names the artifact returned (preview job id, status). It explicitly distinguishes itself from four named siblings (dubbing_create, lipsync_create, speech-previews_create, dialogue-videos_create), so an agent can route without opening another 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?

Gives explicit when-not guidance ('Not for translation, another voice or a new full script, or the final video') with the alternative tool for each case. It also specifies the surrounding workflow: poll dialogue-previews_get, disclose COMPLETED_PARTIAL shortfall, then estimate with dialogue-videos_estimate after user approval, and the condition (keyedPreview reported) that gates idempotencyKey.

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