scraping_browser_go_back
Navigate to the previous page in a web scraping session to revisit content or correct navigation errors during automated data collection.
Instructions
Go back to the previous page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser_tools.js:67-84 (handler)The complete handler definition for the 'scraping_browser_go_back' tool, including the name, description, input parameters schema (empty object), and the execute function. The execute function retrieves the current browser page and calls page.goBack() to navigate back, then returns the new title and URL.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}`); } }, };
- browser_tools.js:307-320 (registration)Registration of the scraping_browser_go_back tool (line 309) within the conditional export of the tools array, which is only included if the API_TOKEN environment variable 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];