browser_youtube_transcript
Retrieve the transcript or captions of the YouTube video open in a browser tab, selecting language and format, to get timed or plain text for analysis.
Instructions
Transcript of the YouTube video open in the tab (the player's caption tracks, read in the page world: the only export that needs it).
lang: wanted language code ("fr", "en"...): manual track first, then auto-generated (track.auto: true), else YouTube's automatic translation (track.translated); omitted = the video's default track. format: "json3" (default) or "vtt". Response: timed_text ("[mm:ss] text" per line), text (plain text), track, available_tracks, title, channel, truncated (max_chars). If YouTube requires its player's token, the player's captions are turned on briefly then restored (enable_captions=False forbids it). Clear error if the video has no track.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| format | No | json3 | |
| tab_id | Yes | Your tab's id (from browser_new_tab, or a tab adopted with browser_adopt_tab). | |
| max_chars | No | ||
| enable_captions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| status | Yes | ||
| warning | No | Emergency stop hotkey not held, or similar notice | |
| untrusted_note | No | Page text that looks like instructions aimed at an AI |