get_page_elements
Extract all interactive elements from a browser page as structured text, including type, label, value, and state. Enables programmatic interaction with web content without screenshots or OCR.
Instructions
Get all interactive elements (buttons, inputs, selects, radios, checkboxes, links) from the current browser page. Returns structured text showing each element's type, label, value, and state. Use this instead of screenshot+OCR to understand web page content. Then use click_by_text or fill_by_label to interact.
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": "get_page_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| browser | No | 'safari' or 'chrome' (defaults to Safari) |