extract
Retrieve page text, HTML, screenshots, cookies, localStorage, or selected elements from a browser session using stored browser and page IDs.
Instructions
Extract content from page (text, html, screenshot, cookies, localStorage, elements)
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": {
"browserId": "<browserId>",
"pageId": "<pageId>",
"type": "<type>"
},
"name": "extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of content to extract | |
| pageId | Yes | Page ID from a previous browse operation | |
| options | No | ||
| selector | No | CSS selector for element-specific extraction | |
| browserId | Yes | Browser ID from a previous browse operation |