add_subtitles
Add subtitles to a CapCut draft from an SRT file, SRT text, or timed lines, with an optional offset to shift all subtitle timings.
Instructions
Добавить субтитры. Источник — один из: srt_path (файл .srt), srt_text (текст в формате SRT) или lines — список {"start": сек, "end": сек, "text": "..."}. offset сдвигает все субтитры на N секунд.
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": {
"draft": "<draft>"
},
"name": "add_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| y | No | ||
| size | No | ||
| color | No | #FFFFFF | |
| draft | Yes | ||
| lines | No | ||
| offset | No | ||
| srt_path | No | ||
| srt_text | No | ||
| outline_color | No | #000000 | |
| background_color | No |