scrape_with_actions
Perform browser actions like clicking, typing, and scrolling to interact with dynamic pages before scraping content from SPAs or login-gated websites.
Instructions
Use this when you need to interact with a page before scraping — login, click buttons, fill forms, scroll, or wait for dynamic content to load. Use for SPAs, login-gated content, or multi-step flows. Screenshots from this tool are stored as crawlforge://screenshot/{actionId} resources. Example: scrape_with_actions({url: "https://app.com/dashboard", actions: [{type:"click",selector:"#login"},{type:"type",selector:"#email",text:"user@a.com"}]})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to scrape | |
| actions | Yes | Browser actions to perform before scraping | |
| formats | No | Output formats for scraped content | |
| maxRetries | No | Maximum retry attempts on failure | |
| formAutoFill | No | Form auto-fill configuration | |
| browserOptions | No | Browser configuration options | |
| extractionOptions | No | Content extraction options | |
| screenshotOnError | No | Capture screenshot when an error occurs | |
| captureScreenshots | No | Take screenshots during action execution | |
| continueOnActionError | No | Continue executing actions if one fails | |
| captureIntermediateStates | No | Capture page state after each action |