Skip to main content
Glama

pilot_back

Navigate back to the prior page in the browser's history. Returns the URL after moving back.

Instructions

Navigate back to the previous page in browser history. Use when the user wants to go back to the prior page they visited.

Parameters: (none)

Returns: The URL of the page after navigating back.

Errors:

  • "No previous page in history": There is nothing to go back to. Use pilot_navigate instead.

  • Timeout (15s): The previous page took too long to load.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual tool handler for 'pilot_back'. It registers the tool with server.tool(...), uses Zod schema {} (no params), and implements the back navigation logic: uses extension 'back' message if available, otherwise falls back to Puppeteer's page.goBack(). Handles errors with wrapError and failure tracking.
      server.tool(
        'pilot_back',
        `Navigate back to the previous page in browser history.
    Use when the user wants to go back to the prior page they visited.
    
    Parameters: (none)
    
    Returns: The URL of the page after navigating back.
    
    Errors:
    - "No previous page in history": There is nothing to go back to. Use pilot_navigate instead.
    - Timeout (15s): The previous page took too long to load.`,
        {},
        async () => {
          await bm.ensureBrowser();
          try {
            const ext = bm.getExtension();
            if (ext) {
              const res = await bm.extSend<{ url: string }>('back');
              return { content: [{ type: 'text' as const, text: `Back → ${res.url}` }] };
            }
            const page = bm.getPage();
            await page.goBack({ waitUntil: 'domcontentloaded', timeout: 15000 });
            bm.resetFailures();
            return { content: [{ type: 'text' as const, text: `Back → ${page.url()}` }] };
          } catch (err) {
            bm.incrementFailures();
            return { content: [{ type: 'text' as const, text: wrapError(err) }], isError: true };
          }
        }
      );
  • The input schema for pilot_back is defined as an empty object {} on line 69, meaning the tool accepts no parameters.
    {},
  • 'pilot_back' is listed in the STANDARD_TOOLS set, marking it as a tool available in the 'standard' and 'full' profiles (but not 'core').
    'pilot_back', 'pilot_forward', 'pilot_reload', 'pilot_get',
  • The registration function registerNavigationTools (which registers pilot_back) is called from registerAllTools, passing the filtered server and browser manager.
    registerNavigationTools(effectiveServer, bm);
Behavior5/5

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

No annotations provided, but the description thoroughly covers behavior: returns URL after navigation, lists two errors (no previous page, timeout after 15s), and implies the action is non-destructive and reversible.

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?

Description is extremely concise with no wasted words: purpose, usage, parameters, returns, errors all in a few sentences. Well-structured and front-loaded.

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

Completeness5/5

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

Given no output schema, the description explains the return value and covers all errors and alternatives. For a parameterless navigation tool, this is fully complete.

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

Parameters4/5

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

No parameters exist (zero), baseline is 4. Description explicitly states 'Parameters: (none)', which adds no extra meaning but is clear. Schema coverage is trivial 100%.

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 clearly states 'Navigate back to the previous page in browser history', using a specific verb and resource. It distinguishes from sibling tools like pilot_forward and pilot_navigate.

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

Usage Guidelines5/5

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

Explicitly says 'Use when the user wants to go back to the prior page they visited' and provides an alternative (pilot_navigate) for the 'No previous page in history' error, offering clear when-to-use and when-not-to-use guidance.

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

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/TacosyHorchata/Pilot'

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