scrape_page
Extract content from web pages, React apps, and React Native web apps using Playwright with CSS selectors, mobile viewport emulation, and screenshot capture.
Instructions
Scrape content from any web page (regular websites, React apps, or React Native web apps) using Playwright
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "scrape_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | Browser engine to use | chromium |
| device | No | Device to emulate (e.g., "iPhone 12", "Pixel 5") - for mobile web apps | |
| mobileViewport | No | Use mobile viewport (primarily for React Native web apps) | |
| screenshot | No | Take a screenshot of the page | |
| selector | No | CSS selector to target specific elements (supports regular CSS and React Native testID/aria-label fallbacks) | |
| url | Yes | URL to scrape | |
| waitFor | No | Wait for specific selector or timeout in ms (e.g., "2000" or "#my-element") |