browser_extract_text
Extract visible text from a specific page element using its snapshot reference. Returns normalized plain string without the overhead of a full snapshot.
Instructions
Extract the textContent of a single element by ref. Cheaper than a full snapshot when you just need the visible text of one element. Returns the text as a plain string with whitespace normalized. Use to grab a heading, a status message, or a single field's value without paying the snapshot cost.
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": {
"element": "<element>",
"ref": "<ref>"
},
"name": "browser_extract_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Exact target element reference from the page snapshot | |
| tabId | No | Optional tab ID to target. When omitted, routes to the agent's active tab. Use browser_list_tabs to see available tab IDs. | |
| element | Yes | Human-readable element description used to obtain permission to interact with the element |