Find and replace in a video
replace_video_textReplaces a word or phrase across a whole video in one save — e.g. renaming a company or product everywhere ("Globex" → "Acme"): every scene's text variables (headlines, callouts, buttons, list items, labels…, including copy still at its default), scene labels, the narration scripts with includeNarration (default true; their audio then needs generate_video_voiceovers), and the video title. Case-insensitive unless matchCase; wholeWord skips matches inside longer words; dryRun only counts and lists. Images, colors and asset keys are never touched. Words typed into a custom scene's markup instead of a variable can't be replaced here: the answer lists those scenes (rewrite them with write_scene).
Requires: demos:read, demos:write.
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": {
"videoId": "<videoId>",
"find": "<find>",
"replace": "<replace>"
},
"name": "replace_video_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| dryRun | No | Only count and list the places; nothing is saved. | |
| replace | Yes | ||
| videoId | Yes | Video id (from list_videos), e.g. "v_Ab12Cd34Ef56Gh78". | |
| sceneIds | No | Only these scenes (default: all). | |
| matchCase | No | ||
| wholeWord | No | ||
| includeTitle | No | Also the video title. | |
| includeNarration | No | Also the narration scripts. |