Browserless Scrape
browserless_scrapeExtract structured data from a rendered page using CSS selectors. Returns text, inner HTML, attributes and geometry for every matched element. Example: browserless_scrape({ url: "https://news.ycombinator.com", elements: [{ selector: ".titleline a" }], _apiKey: "your-token" })
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "https://news.ycombinator.com",
"_apiKey": "your-browserless-api-key",
"elements": [
{
"selector": ".titleline a"
}
]
},
"name": "browserless_scrape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page URL to scrape | |
| _host | No | Optional region host override | |
| _apiKey | Yes | Browserless API token (sign up at https://www.browserless.io/signup) | |
| elements | Yes | Array of selector objects, each { selector: "<css-selector>" }. Uses document.querySelectorAll, so each selector can match many elements. |