Extract Text
browser.extract_textExtract visible text from a webpage or a specific CSS selector, enabling content retrieval for automation and development tasks.
Instructions
Extract visible text from the page or a selector.
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": {
"sessionId": "<sessionId>"
},
"name": "browser.extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| selector | No | ||
| sessionId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | ||
| sourceUrl | Yes | ||
| textBlocks | Yes | ||
| extractedAt | Yes |