browser_get_by_role
Locate web elements by ARIA role and optional name for precise automated interaction and assertions.
Instructions
通过角色查找元素
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": {
"role": "<role>"
},
"name": "browser_get_by_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| role | Yes |