get_subscribed_channels
Retrieve your YouTube channel subscriptions using browser cookies to manage viewing preferences and content discovery.
Instructions
List your subscribed YouTube channels using Chrome cookies.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max channels to return (default 30) |
Implementation Reference
- src/index.ts:245-263 (handler)The tool `get_subscribed_channels` is registered and defined as a handler in `src/index.ts`. It uses `fetchFeed` to retrieve data from the YouTube subscriptions feed and returns a list of channels.
server.tool( 'get_subscribed_channels', 'List your subscribed YouTube channels using Chrome cookies.', { limit: z.number().min(1).max(100).default(30).describe('Max channels to return (default 30)') }, async ({ limit }) => { const depErr = checkDeps(); if (depErr) return errorResult(depErr); try { const result = await fetchFeed('https://www.youtube.com/feed/channels', limit); const channels = (result.entries || []).map((e) => ({ channel: e.channel, channel_url: e.channel_url || e.url, title: e.title, })); return textResult({ count: channels.length, channels }); } catch (err) { return errorResult(`Error: ${err instanceof Error ? err.message : String(err)}`); } } );