Skip to main content
Glama

navigate

Direct Firefox browser automation to load a specified URL in a specific tab, enabling efficient navigation and control for multi-tab debugging and testing workflows.

Instructions

Navigate to a URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdNo
urlYes

Implementation Reference

  • The primary handler for the 'navigate' MCP tool. Retrieves the target browser page (by tabId or active tab), navigates to the provided URL using Playwright's page.goto(), and returns a confirmation message.
    async navigate(args) {
      this.ensureBrowserRunning();
      const { url, tabId } = args;
      const page = this.getPage(tabId);
      
      await page.goto(url);
      
      return {
        content: [{ type: 'text', text: `Tab '${tabId || this.activeTabId}' navigated to: ${url}` }]
      };
    }
  • Input schema definition for the 'navigate' tool, specifying required 'url' parameter and optional 'tabId'.
    {
      name: 'navigate',
      description: 'Navigate to a URL',
      inputSchema: {
        type: 'object',
        properties: {
          url: { type: 'string' },
          tabId: { type: 'string' }
        },
        required: ['url']
      }
    },
  • Registration and dispatch of the 'navigate' tool within the CallToolRequestSchema request handler switch statement.
    case 'navigate':
      return await this.navigate(args);
  • Helper method used by navigate (and other tools) to retrieve the browser Page object for a given tabId or the active tab.
    getPage(tabId) {
      if (tabId) {
        if (!this.pages.has(tabId)) {
          throw new Error(`Tab '${tabId}' not found`);
        }
        return this.pages.get(tabId);
      } else {
        if (!this.activeTabId || !this.pages.has(this.activeTabId)) {
          throw new Error('No active tab. Use create_tab or set_active_tab first.');
        }
        return this.pages.get(this.activeTabId);
      }
    }
Behavior1/5

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

No annotations are provided, so the description must fully disclose behavioral traits. 'Navigate to a URL' implies a navigation action but lacks details on permissions, side effects (e.g., page loading, potential errors), or response behavior. This is inadequate for a tool with mutation implications.

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 is extremely concise at three words, front-loaded with the core action. There's no wasted language, making it efficient and easy to parse, though this brevity contributes to gaps in other dimensions.

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

Completeness2/5

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

Given the tool's complexity (navigation with potential side effects), no annotations, no output schema, and low schema coverage, the description is incomplete. It doesn't address return values, error handling, or interaction with sibling tools, failing to provide adequate context for safe use.

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

Parameters2/5

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

The description mentions 'a URL' but doesn't explain the 'tabId' parameter or provide any semantic context beyond the schema's 0% coverage. With two parameters (one required), the description fails to compensate for the lack of schema documentation, leaving key inputs unexplained.

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

Purpose4/5

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

The description 'Navigate to a URL' clearly states the verb ('Navigate') and resource ('a URL'), making the tool's purpose understandable. However, it doesn't distinguish this tool from potential alternatives like 'reload' or 'get_current_url' among the siblings, which would require more specificity for a perfect score.

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. With siblings like 'reload' (for refreshing), 'get_current_url' (for reading), and 'create_tab' (for new tabs), there's no indication of prerequisites, context, or exclusions, leaving usage ambiguous.

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/JediLuke/firefox-mcp-server'

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