Post-production edit
post_editApply ordered mechanical edits to an existing video URL—trim, speed, mute, music, voiceover, text, watermark, joins, or layout—to output a new video without AI generation.
Instructions
MECHANICAL post-production on an EXISTING video (URL): ordered ffmpeg primitives, ~2 credits flat, NO AI model, outputs a NEW video. Ops: a branded end card, trim, speed (0.5-2x), mute (whole or a window), audio_gain (-20..+6 dB), fade_out, music (a ducked bed: omit track = a free library track picked by mood, no attribution; or track = an audio link (upload_file, find_sound or generate_sfx URL, or a post's sound); track 'generate' composes it, paid, ONLY when the user asks; start/end, db, replace), voiceover (text spoken OVER it, its sound ducked; ~2.5 words/s; voice female|male; +~1 credit), watermark (brand logo), grain (anti-AI), text (timed words in a native look: style 'tiktok-classic' default / 'clean-minimal' / 'note-style' or a textStyle; start/end, or at:{word} and until:{word} to time them to speech), join (this video FOLLOWED BY clips[]: Library URLs, files or public post links, one 1080x1920 video), layout (ONLY when asked: split screen, cut-out or green-screen presenter, letterbox, fisheye; whole or a start/end window). Presets are shortcuts: x/y, grain amount, join transition and bridge sound are free. 'A viral hook, then our clip' = videoUrl: the hook's post link + [{op:'join', clips:[{url: ours}], bridge}], and it ALWAYS gets a bridge unless the user asks for a bare cut: {kind:'impact'} cuts the hook just before its payoff (cutAt overrides) and lands our clip on a punch-in and flash, with the payoff sound FROM THE HOOK ITSELF (else one generated from its frames, up to 8 credits, else a neutral impact). {kind:'text', text, then?} only when words over the cut are asked for. No voiceover bridge. ANY OTHER EDIT, op or bridge (whip, zoom, freeze, wipe, generated shot) is edit_timeline: free keyframes, any size. NEVER generate_video/render_ad for these. Feedback is one named move, never a re-render: quieter/louder (music db, audio_gain), faster/slower (speed; slower = zooms and pans at 0.7x), tighten (trim), retime (word anchor), recut (order, in/out), regrade (timeline colour keys).
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": {
"videoUrl": "<videoUrl>",
"ops": "<ops>"
},
"name": "post_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | the ordered edit plan (max 6 ops) | |
| accent | No | override the brand accent hex | |
| domain | No | override the brand website | |
| dryRun | No | true = return the estimated credits this edit reserves and run nothing | |
| get_cost | No | true: return the price only; nothing runs or bills | |
| videoUrl | Yes | the video to edit: a render / Library URL, a direct file, or a public post link; a URL, not a local file path; use upload_file for local files | |
| brandName | No | override the workspace brand name | |
| idempotency_key | No | chosen once, resent unchanged on retries: the same key never buys twice | |
| expected_credits | No | the get_cost price; refused unbilled if the live price differs |