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
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") |
Input Schema (JSON Schema)
{
"properties": {
"browser": {
"default": "chromium",
"description": "Browser engine to use",
"enum": [
"chromium",
"firefox",
"webkit"
],
"type": "string"
},
"device": {
"description": "Device to emulate (e.g., \"iPhone 12\", \"Pixel 5\") - for mobile web apps",
"type": "string"
},
"mobileViewport": {
"default": false,
"description": "Use mobile viewport (primarily for React Native web apps)",
"type": "boolean"
},
"screenshot": {
"default": false,
"description": "Take a screenshot of the page",
"type": "boolean"
},
"selector": {
"description": "CSS selector to target specific elements (supports regular CSS and React Native testID/aria-label fallbacks)",
"type": "string"
},
"url": {
"description": "URL to scrape",
"type": "string"
},
"waitFor": {
"description": "Wait for specific selector or timeout in ms (e.g., \"2000\" or \"#my-element\")",
"type": "string"
}
},
"required": [
"url"
],
"type": "object"
}