Skip to main content
Glama
JustasMonkev

MCP Accessibility Scanner

browser_tab_new

Read-only

Launch a new browser tab with a specified URL to facilitate automated accessibility scans, ensuring WCAG compliance and generating detailed remediation reports.

Instructions

Open a new tab

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoThe URL to navigate to in the new tab. If not provided, the new tab will be blank.

Implementation Reference

  • The handler function for the 'browser_tabs' tool. For action 'new', it calls context.newTab() to create a new browser tab and includes tabs in the response.
    handle: async (context, params, response) => {
      switch (params.action) {
        case 'list': {
          await context.ensureTab();
          response.setIncludeTabs();
          return;
        }
        case 'new': {
          await context.newTab();
          response.setIncludeTabs();
          return;
        }
        case 'close': {
          await context.closeTab(params.index);
          response.setIncludeSnapshot();
          return;
        }
        case 'select': {
          if (params.index === undefined)
            throw new Error('Tab index is required');
          await context.selectTab(params.index);
          response.setIncludeSnapshot();
          return;
        }
      }
    },
  • The schema definition for the 'browser_tabs' tool, which supports 'new' action to create a new tab.
    schema: {
      name: 'browser_tabs',
      title: 'Manage tabs',
      description: 'List, create, close, or select a browser tab.',
      inputSchema: z.object({
        action: z.enum(['list', 'new', 'close', 'select']).describe('Operation to perform'),
        index: z.number().optional().describe('Tab index, used for close/select. If omitted for close, current tab is closed.'),
      }),
      type: 'destructive',
    },
  • Core implementation of creating a new tab by calling browserContext.newPage() and updating current tab.
    async newTab(): Promise<Tab> {
      const { browserContext } = await this._ensureBrowserContext();
      const page = await browserContext.newPage();
      this._currentTab = this._tabs.find(t => t.page === page)!;
      return this._currentTab;
    }
  • src/tools.ts:38-56 (registration)
    Registration of all tools, including the tabs tools (which exports browser_tabs) into the allTools array used by the MCP backend.
    export const allTools: Tool<any>[] = [
      ...common,
      ...console,
      ...dialogs,
      ...evaluate,
      ...files,
      ...form,
      ...install,
      ...keyboard,
      ...navigate,
      ...network,
      ...mouse,
      ...pdf,
      ...screenshot,
      ...snapshot,
      ...tabs,
      ...wait,
      ...verify,
    ];
  • src/tools.ts:30-30 (registration)
    Import of tabs module containing browser_tabs tool.
    import tabs from './tools/tabs.js';
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, covering safety and scope. The description adds minimal context ('new tab' implies creation, not modification of existing tabs), but doesn't detail behavioral aspects like whether it focuses the tab, handles errors for invalid URLs, or interacts with browser state beyond what annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description 'Open a new tab' is a single, front-loaded sentence with zero waste. It efficiently conveys the core action without unnecessary words, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (one optional parameter), rich annotations (covering safety and scope), and no output schema, the description is mostly complete. However, it lacks context on usage scenarios or integration with sibling tools, leaving minor gaps for an AI agent to infer optimal use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with the parameter 'url' fully documented in the schema. The description doesn't add any semantic details beyond what's in the schema (e.g., URL format, default behavior). With high schema coverage, the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Open a new tab' is a specific verb+resource action that clearly distinguishes it from siblings like browser_tab_close (close), browser_tab_list (list), or browser_tab_select (select). It precisely states what the tool does without ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an open browser), exclusions (e.g., not for opening windows), or comparisons to siblings like browser_navigate (which might reuse existing tabs).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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/JustasMonkev/mcp-accessibility-scanner'

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