discover_elements
Inspect a page to obtain its ARIA snapshot and candidate targets matching a query, each with a suggested target for end-to-end test tickets. Log in or navigate first to set up the page.
Instructions
Inspect a page: returns the ARIA snapshot and candidate targets matching a query, each with a suggested Target for tickets. steps_before can log in or navigate first.
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": "discover_elements"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| query | No | ||
| max_results | No | ||
| steps_before | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| query | Yes | ||
| final_url | Yes | ||
| candidates | Yes | ||
| aria_snapshot | Yes | ||
| aria_snapshot_truncated | Yes |