stream_add_caption
Add caption or subtitle tracks to videos in Bunny.net Stream libraries using SRT/VTT files. Specify language codes and display labels for accessibility and multilingual support.
Instructions
Add a caption/subtitle track to a video
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": {
"libraryId": "<libraryId>",
"videoId": "<videoId>",
"srclang": "<srclang>",
"label": "<label>",
"captionsFile": "<captionsFile>"
},
"name": "stream_add_caption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| libraryId | Yes | Stream library ID | |
| videoId | Yes | Video GUID | |
| srclang | Yes | Language code (e.g. en, id) | |
| label | Yes | Display label (e.g. English, Indonesian) | |
| captionsFile | Yes | Base64-encoded SRT/VTT caption file content |