Skip to main content
Glama

scraping_browser_go_back

Navigate back to the previous webpage in the browsing session to review prior content or correct navigation paths during web scraping and automation tasks.

Instructions

Go back to the previous page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The full tool definition including the handler function (execute) that gets the current browser page and calls goBack() on it, returning the new title and URL or throwing an error.
    let scraping_browser_go_back = { name: 'scraping_browser_go_back', description: 'Go back to the previous page', parameters: z.object({}), execute: async()=>{ const page = await (await require_browser()).get_page(); try { await page.goBack(); return [ 'Successfully navigated back', `Title: ${await page.title()}`, `URL: ${page.url()}`, ].join('\n'); } catch(e){ throw new UserError(`Error navigating back: ${e}`); } }, };
  • Zod schema for the tool parameters: no parameters required.
    parameters: z.object({}),
  • Registration of the tool in the exported 'tools' array, which is conditionally included if API_TOKEN is set.
    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];

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