scraping_browser_go_forward
Navigate forward to the next page in a web browsing session to continue data collection or automation workflows.
Instructions
Go forward to the next page
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "scraping_browser_go_forward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser_tools.js:86-103 (handler)Full definition of the scraping_browser_go_forward tool object, including name, description, empty parameters schema (z.object({})), and execute handler that retrieves the browser page and calls page.goForward(), then returns success message with title and URL.
const scraping_browser_go_forward = { name: 'scraping_browser_go_forward', description: 'Go forward to the next page', parameters: z.object({}), execute: async()=>{ const page = await (await require_browser()).get_page(); try { await page.goForward(); return [ 'Successfully navigated forward', `Title: ${await page.title()}`, `URL: ${page.url()}`, ].join('\n'); } catch(e){ throw new UserError(`Error navigating forward: ${e}`); } }, }; - browser_tools.js:307-320 (registration)Export of the 'tools' array that registers scraping_browser_go_forward (at line 310) among other browser tools, conditional on process.env.API_TOKEN being 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];