boj_browser_tabs
Manage browser tabs by listing existing tabs, creating new tabs with specific URLs, or closing tabs using their IDs.
Instructions
List, create, or close browser tabs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | Tab operation | |
| url | No | URL for new tab (create only) | |
| tab_id | No | Tab ID (close only) |
Implementation Reference
- mcp-bridge/main.js:694-700 (handler)The handler for "boj_browser_tabs" (and other browser tools) which invokes the "browser-mcp" cartridge via the bridge.
case "boj_browser_tabs": case "boj_browser_execute_js": { const action = toolName.replace("boj_browser_", ""); const result = await invokeCartridge("browser-mcp", { action, ...args }); sendResult(id, { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }); break; } - mcp-bridge/main.js:502-514 (schema)Registration and schema definition for the "boj_browser_tabs" tool.
tools.push({ name: "boj_browser_tabs", description: "List, create, or close browser tabs", inputSchema: { type: "object", properties: { operation: { type: "string", enum: ["list", "create", "close"], description: "Tab operation" }, url: { type: "string", description: "URL for new tab (create only)" }, tab_id: { type: "number", description: "Tab ID (close only)" }, }, required: ["operation"], }, });