scraping_browser_scroll
Scroll to the bottom of web pages to load dynamic content for data extraction and web scraping tasks.
Instructions
Scroll to the bottom of the current page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- browser_tools.js:266-281 (handler)The main handler for the 'scraping_browser_scroll' tool. It scrolls the current browser page to the bottom using window.scrollTo.let scraping_browser_scroll = { name: 'scraping_browser_scroll', description: 'Scroll to the bottom of the current page', parameters: z.object({}), execute: async()=>{ const page = await (await require_browser()).get_page(); try { await page.evaluate(()=>{ window.scrollTo(0, document.body.scrollHeight); }); return 'Successfully scrolled to the bottom of the page'; } catch(e){ throw new UserError(`Error scrolling page: ${e}`); } }, };
- browser_tools.js:307-320 (registration)Registration of the scraping_browser_scroll tool in the exported 'tools' array, conditionally based on API_TOKEN.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];
- browser_tools.js:269-269 (schema)Input schema for the tool: empty object, no parameters required.parameters: z.object({}),