browser_extract
Extract text or structured data from a live webpage by instruction, schema, or CSS selector; collect list rows or long text in resumable chunks.
Instructions
Extract text or structured data from the webpage according to an extraction instruction.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "browser_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element reference from browser_snapshot (e.g. "@e12"). Preferred over index; also used to target a scroll container. | |
| mode | No | Self-checking collection. "rows" saves list records, follows Next or scrolls the list, rechecks a load that adds nothing, and stops at target or at the total the pager claims. "chunk" reads long text in paragraph-sized chunks and records the section reached. Each call works for up to about 12 s; call again with collectionId until complete is true or stopReason explains the shortfall. | |
| since | No | Return only rows (or text characters) after this count; pass nextSince from the previous call. | |
| tabId | No | Optional browser tab id to act on instead of the focused tab. | |
| schema | No | JSON Schema, validated without eval. Unsupported keywords return an explicit error. Extraction uses the configured model. | |
| target | No | With mode="rows": how many records to collect. Without it, one capture of the current list. | |
| selector | No | Optional CSS selector to scope extraction. | |
| instruction | No | Extraction guidance or prompt (e.g. "Extract all product prices and titles"). | |
| collectionId | No | Returned by the first mode call; pass it to resume the same collection. |