browser_read_html
Extracts a page's cleaned HTML when structure matters, such as forms, labels, tables, and control wiring. Choose form, text, or full mode to strip noise while keeping markup relationships intact.
Instructions
The page's HTML, cleaned down to what is worth reading.
Use this when the STRUCTURE matters - a form and its labels, a table, what
a control is wired to. browser_snapshot gives a flat inventory of things
to click; this keeps the markup and the relationships inside it.
mode="form" keeps the interactive surface and the text explaining it, mode="text" returns the prose alone, mode="full" keeps the structure with the noise and the attribute soup removed.
Unlike browser_read_text this is NOT capped: it returns the whole reduced page, tens of thousands of characters on a large one. Cutting markup in the middle leaves tags that mean nothing, so it is not cut - but the answer can be long. Reach for browser_snapshot when you only need something to click.
frame reads inside an iframe: pass an element's frame from the snapshot.
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_read_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | form | |
| frame | No | ||
| browser | No | Defaults to `main`; `support` is the helper beside it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |