Skip to main content
Glama

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
NameRequiredDescriptionDefault
operationYesTab operation
urlNoURL for new tab (create only)
tab_idNoTab ID (close only)

Implementation Reference

  • 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;
    }
  • 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"],
      },
    });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hyperpolymath/boj-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server