Skip to main content
Glama

pilot_navigate

Navigate to web URLs to retrieve HTTP status codes and final destination addresses for automated browsing tasks.

Instructions

Navigate to a URL. Returns HTTP status code and final URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to navigate to

Implementation Reference

  • The implementation of the pilot_navigate tool handler.
    server.tool(
      'pilot_navigate',
      'Navigate to a URL. Returns HTTP status code and final URL.',
      { url: z.string().describe('URL to navigate to') },
      async ({ url }) => {
        await bm.ensureBrowser();
        try {
          await validateNavigationUrl(url);
          const page = bm.getPage();
          const response = await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 15000 });
          const status = response?.status() || 'unknown';
          bm.resetFailures();
          return { content: [{ type: 'text' as const, text: `Navigated to ${url} (${status})` }] };
        } 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