kodeagent.tools.transcribe_youtube#

kodeagent.tools.transcribe_youtube(video_id: str) str[source]#

Get the transcript or subtitles for a YouTube video by its video ID. The video ID is the part after ‘?v=’ in the URL. For example: https://www.youtube.com/watch?v=aBc4E has video ID ‘aBc4E’.

Parameters:

video_id – YouTube video ID (not the full URL).

Returns:

The transcript text of the video, or an error message if unavailable.