Download the exact captured file
---
name: captions
description: "Add subtitles to a property video: burned-in captions in a clean, highlighted or bold reel style, or a sidecar SRT/VTT file for YouTube and listing portals, in English, Hebrew (right to left) and other languages, with street, agent and brand names spelled right. Use for captions, subtitles, closed captions or an SRT; on-screen titles and price tags are motion-graphics."
---
# Captions
Video in, the same video with captions out, or a sidecar file beside it. Captions show what is said, spelled right, placed clear of faces, overlays and the app's buttons. The footage and its sound never change.
**The user provides:** a video with speech (one made here or their own), the language, optionally the approved script, the style and the names to spell.
**They get:** a captioned video (free fixes for wording, look and position afterwards), or an SRT or VTT file, or both.
## House rules
- **Show what is said.** Nothing added, summarised, cleaned up or translated unless the user asks. A translation is a second set, clearly a translation.
- **No speech, no captions.** A silent tour gets titles from `motion-graphics`, not invented captions.
- **One captioned video per request**, not several looks. One bundled question at most.
- **Lost is not failed.** After a timeout, `check_job` before sending anything again. Judge the finished frames, not the job status.
- Argument names not given here are in each tool's own schema. No image or video model is used, so no `get_model_params` step.
## 1. Look at the video
- The video must be a file URL: a video project's cut, a clip here, or an upload (`get_upload_url` + `confirm_upload`, `upload_asset` for a link, then `check_job`).
- `extract_frames({ video_url, mode: "timeline" })`: note the ratio, where faces sit, existing text (the agent's lower third, price tags, the disclosure label, a logo), cuts, and captions already burned in.
- Captions already burned in by someone else: ask once for the clean version; never stack a second set on top unless the user still wants it.
## 2. Choose the output
| The user wants | Output |
|---|---|
| "Captions", "subtitles", nothing more | Burned in, `preset: "clean"` |
| A reel look | Burned in, `bold_pop`, `highlight` or `one_word` |
| A calm luxury look | Burned in, `cinematic` (small, lower, no box) |
| Captions viewers can switch off (YouTube, Vimeo, portals) | A sidecar SRT or VTT |
| To pick the style themselves | `add_subtitles` with `interactive: true`; they choose in the card |
Presets: `clean` (default), `highlight`, `bold_pop`, `box`, `word_box`, `one_word`, `reveal`, `cinematic`.
## 3. Burned-in captions
| Input | Value |
|---|---|
| `video_url` | the video |
| `language` | the spoken language's code (`he`, `es`, `fr`) when known and not English |
| `preset` | from the table, only when a look was asked for |
| `script` | the approved narration script when there is one: timing comes from the audio, spelling from the script. Hebrew: the plain script without niqqud |
| `terms` | street and neighbourhood names, the agent's and brokerage's names, the project's name, building terms ("Japandi", "en-suite", ממ"ד) |
| `position`, `y_offset` | only to clear what the frames showed |
`add_subtitles` transcribes the video itself; do not run `transcribe` first. In a video project, caption the assembled, labelled cut, once per aspect ratio.
**Placement.**
- An agent lower third or a price tag in the bottom third: `position: "top"`, or a larger `y_offset` (20 to 200) to sit above it.
- Vertical reels: keep captions out of the top tenth and the bottom fifth, where the app's buttons and text sit.
- Never over the disclosure label: move the captions, not the label.
**Right to left.** Hebrew and Arabic are laid out right to left in a font that has the letters when `language` is set. Numbers, prices and Latin brand names inside a line stay left to right. Use `clean` unless the user asked for a word-by-word look; then check that the highlight moves right to left with the speech.
**Free fixes.** After `check_job`, `add_subtitles` with the same `video_url`, `fix_job_id` the finished job's id, and `corrections` (`[{ "from": "Rothchild", "to": "Rothschild" }]`) and/or a new `preset`, `position` or size. It renders from the original video at no charge, up to 20 times; the user can do the same in the result card.
## 4. Sidecar files
`transcribe({ video_url, language_code })` for word timings. Build cues from the words: at most 42 characters per line, at most two lines, 1 to 6 seconds each, a cue ending at each cut and each sentence end, no cue across a cut. Use the approved script's spelling. Give the SRT (or VTT) as a file the user can download, or as text in a code block when no file tool is available. Hebrew SRTs are plain text without niqqud; players handle the direction.
## 5. Check
Pick five or six times: within the first two seconds, the last five, just after each cut, where a name or price is said, and where an overlay sits. `extract_frames({ video_url, timestamps: [...] })` on the captioned video and look at each frame:
| Look for | Pass |
|---|---|
| Wording | The words on screen are the words said; names, numbers and prices spelled as in the script or terms |
| Clearance | No caption over a face, a lower third, a price tag, the label or the app's button areas |
| Length | A few words per cue, one or two lines, nothing running off the frame |
| Script | Real letters, no empty boxes; right-to-left lines read correctly |
| Timing | The first spoken word is captioned; the last cue leaves when speech ends |
One fix round on what the frames showed, with `fix_job_id`. A second failure goes to the user with the frame and the reason.
## 6. Deliver
The captioned video's URL (the original stays as it was) and/or the sidecar file, the look used, what was checked and what could not be (a language you cannot read). Offer the free fixes.
## When something goes wrong
| What happened | What to do |
|---|---|
| A street or agent name is misspelled | `fix_job_id` with `corrections`; for many names ask once for the list |
| Captions cover the lower third | `fix_job_id` with `position: "top"` or a larger `y_offset` |
| Music drowns words | Say which stretch; give the approved script as `script` and try once more |
| The user wants English captions on Hebrew speech | Only on request: translate the cues, keep the timings, give them as `captions`, and say they are a translation |