get-element-snapshot
Reads the accessibility snapshot of a single page element to inspect its role, name, and state; use page snapshots for actionable references.
Instructions
Read the accessibility snapshot of one element. Use get-page-snapshot for actionable references.
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-snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| selector | Yes | ||
| sessionId | No | Browser session ID. Defaults to 'default'. |