upload-caption
Upload a caption track from a local file (SRT/VTT/SBV/TTML) to a YouTube video, specifying language, track name, and optional draft status.
Instructions
Upload a new caption track from a local file (SRT/VTT/SBV/TTML). Costs 400 quota units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Track name shown to viewers | |
| isDraft | No | Whether the track is unpublished | |
| videoId | Yes | Video ID | |
| filePath | Yes | Absolute local path to the caption file | |
| language | Yes | BCP-47 language code, e.g. en |