Skip to main content
Glama

pilot_back

Navigate back in browser history to return to previous web pages during automated browsing sessions.

Instructions

Go back in browser history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the pilot_back tool, which navigates the browser back one page in history.
    async () => {
      await bm.ensureBrowser();
      try {
        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 };
      }
    }
  • MCP tool registration for pilot_back.
    server.tool(
      'pilot_back',
      'Go back in browser history.',
      {},
      async () => {
        await bm.ensureBrowser();
        try {
          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 };
        }
      }
    );

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