Package Exports
- pi-youtube-transcript
- pi-youtube-transcript/index.ts
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pi-youtube-transcript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pi-youtube-transcript
A pi extension that fetches YouTube video transcripts via the youtube-transcript library.
Install
pi install npm:pi-youtube-transcriptUsage
The extension registers a youtube_transcript tool that pi agents can call automatically when you ask about a YouTube video's content.
Example prompt:
Use youtube_transcript to summarize https://youtube.com/watch?v=dQw4w9WgXcQ
Supported URL formats
https://youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://youtube.com/shorts/VIDEO_IDhttps://www.youtube.com/live/VIDEO_ID- Bare 11-character video IDs
Language
By default the tool returns the first available transcript. To request a specific language, the agent will pass a lang parameter (ISO language code like "en", "es", "fr").
License
MIT