pilot_tabs
List all open browser tabs with URLs, titles, and active status for browser automation tasks.
Instructions
List all open browser tabs with URLs, titles, and active status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/tabs.ts:7-22 (handler)The handler implementation for the 'pilot_tabs' tool, which fetches and lists browser tabs.
server.tool( 'pilot_tabs', 'List all open browser tabs with URLs, titles, and active status.', {}, async () => { await bm.ensureBrowser(); try { const tabs = await bm.getTabListWithTitles(); const text = tabs.map(t => `${t.active ? '→ ' : ' '}[${t.id}] ${t.title || '(untitled)'} — ${t.url}` ).join('\n'); return { content: [{ type: 'text' as const, text }] }; } catch (err) { return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true }; } } - src/tools/register.ts:80-80 (registration)Registration of the tab tools, including 'pilot_tabs', within the main registration module.
registerTabTools(effectiveServer, bm);