analyze_page
Analyze webpages to identify interactive elements and generate reliable locators for test automation and page structure understanding.
Instructions
Analyze an entire webpage and return all interactive elements with their best locators. Use this to understand page structure or get all elements at once.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "analyze_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the webpage to analyze | |
| elementTypes | No | Optional filter by element types: 'button', 'input', 'link', 'select', 'textarea', 'checkbox', 'radio'. Leave empty for all. |