tool_read_element
Check if a UI element is still present using its ref before acting. Re-reads the element to detect stale references from UI rebuilds, returning a clear report instead of guessing.
Instructions
Re-read a UI element by the ref returned from element_at_point. Use this to check whether an element is still there before acting on it; a ref goes stale when the UI is rebuilt, and that is reported rather than guessed. Read-only.
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": {
"ref": "<ref>"
},
"name": "tool_read_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||