read_page
Extract page content from the current tab in text, markdown, HTML, or accessibility formats. Optionally save the output to a file.
Instructions
Read the page as text (default), markdown, raw HTML, or accessibility tree. Read-only. markdown keeps headings, links and tables at a fraction of the HTML cost. Expensive on big pages: HTML on a large table costs tens of thousands of tokens for data you filter anyway — prefer extract_table/extract for repeated content, get_interactives for click targets.
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": "read_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text strips markup; markdown keeps headings/links/tables far cheaper than html; accessibility = a11y tree | text |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| save_to | No | Absolute path: write the page there and return the path instead of the content | |
| frame_id | No | Target iframe id from get_frames; omitted = main frame | |
| max_length | No | Max output chars |