browser_tabs
Manage browser tabs within isolated Playwright sessions to resolve session conflicts and enable concurrent browsing tasks.
Instructions
Manage tabs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| index | No |
Implementation Reference
- index.js:367-380 (registration)The 'browser_tabs' tool is registered using server.tool, and it uses proxyToolCall to delegate the execution.
server.tool('browser_tabs', 'Manage tabs', { action: z.enum(['list', 'new', 'close', 'select']), index: z.number().optional() }, async (args) => { // 'new' action can work without active page, others require it if (args.action !== 'new') { const check = requireActivePage(); if (check) return check; } const result = await proxyToolCall('browser_tabs', args); // 'new' action creates a page if (args.action === 'new' && !result.isError) { hasActivePage = true; }