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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_browser"
}
}Input 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; }