get-element-info
Inspect page elements by snapshot reference, label, or role and name to read their text, visibility, enabled state, and bounds.
Instructions
Read text, visibility, enabled state and bounds of elements matched by snapshot reference, label, or role and name.
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": {
"pageId": "<pageId>",
"selector": "<selector>"
},
"name": "get-element-info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| selector | Yes | ||
| sessionId | No | Browser session ID. Defaults to 'default'. |