Get Page Content
get_page_contentExtract visible text from the current page or elements matching a selector. Returns joined text or first match, ensuring partial answers are never silent.
Instructions
Get the visible text of a page, or of every element matching a selector joined with blank lines. Always reports "matched", so a partial answer is never silent. Nested matches repeat their text, so prefer a leaf-ish selector.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab_id | No | Arc tab id from list_tabs. Omit to use this agent's current tab, falling back to whatever tab is active in Arc. | |
| selector | No | CSS selector, or "text=Some label" to match on visible text (substring, exact matches ranked first) | |
| max_chars | No | Truncate the joined text at this length | |
| first_only | No | Return only the first match instead of joining all of them |