get_browser
Identify the active browser for cookie-based authentication to enable video playback control on YouTube and TikTok through the social-video-mcp server.
Instructions
Check which browser is currently being used for cookie-based authentication.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:651-658 (handler)The handler for the 'get_browser' tool, which returns the currently configured browser name and the list of supported browsers.
server.tool( 'get_browser', 'Check which browser is currently being used for cookie-based authentication.', {}, async () => { return textResult({ browser: getBrowser(), supported: [...SUPPORTED_BROWSERS] }); } ); - src/validate.ts:86-86 (helper)The helper function 'getBrowser' that retrieves the currently set browser name from the module state.
export function getBrowser(): BrowserName { return currentBrowser; }