Skip to main content
Glama

scraping_browser_navigate

Navigate a scraping browser session to a new URL for accessing real-time web data and bypassing restrictions.

Instructions

Navigate a scraping browser session to a new URL

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL to navigate to

Implementation Reference

  • The complete tool handler for 'scraping_browser_navigate', defining the tool's metadata, Zod input schema, and the execute function which initializes a browser session, navigates to the specified URL using page.goto(), retrieves title and current URL, and returns a status message.
    let scraping_browser_navigate = { name: 'scraping_browser_navigate', description: 'Navigate a scraping browser session to a new URL', parameters: z.object({ url: z.string().describe('The URL to navigate to'), }), execute: async({url})=>{ const page = await (await require_browser()).get_page({url}); try { await page.goto(url, { timeout: 120000, waitUntil: 'domcontentloaded', }); return [ `Successfully navigated to ${url}`, `Title: ${await page.title()}`, `URL: ${page.url()}`, ].join('\n'); } catch(e){ throw new UserError(`Error navigating to ${url}: ${e}`); } }, };
  • Registration of the 'scraping_browser_navigate' tool by including it in the conditionally exported 'tools' array (only if API_TOKEN is set; otherwise, activation instructions tool is exported). This array is likely imported and used by the MCP server to register all browser tools.
    export const tools = process.env.API_TOKEN ? [ scraping_browser_navigate, scraping_browser_go_back, scraping_browser_go_forward, scraping_browser_links, scraping_browser_click, scraping_browser_type, scraping_browser_wait_for, scraping_browser_screenshot, scraping_browser_get_text, scraping_browser_get_html, scraping_browser_scroll, scraping_browser_scroll_to, ] : [scraping_browser_activation_instructions];
  • Zod schema defining the input parameters for the tool: a required 'url' string.
    parameters: z.object({ url: z.string().describe('The URL to navigate to'), }),

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/dsouza-anush/brightdata-mcp-heroku'

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