Extract page content
browser_extractExtract the current page or a selected element as snapshot, HTML, Markdown, or text without navigating, enabling AI agents to read live web content for analysis or RAG workflows.
Instructions
Read the current page or one element as snapshot, HTML, Markdown, or text without navigating. Return plain text; snapshot search keeps refs, ancestor paths and three lines of nearby context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boxes | No | Include viewport bounding boxes in snapshots; ignored for other formats. | |
| depth | No | Snapshot depth before search; unlimited if omitted. Ignored for other formats. | |
| search | No | Snapshot-only Python regex; case-sensitive unless (?i). No matches returns empty text. | |
| target | No | Playwright selector or aria-ref=<ref> matching one element; omitted reads the page. | |
| session_id | Yes | ID from `browser_open`; call `browser_fetch` first. | |
| extraction_type | No | Output format; defaults to an AI ARIA snapshot. | snapshot |
| main_content_only | No | Clean body/target content for AI; ignored for snapshots. |