mac_get
Reads a single accessibility element by element_index to return its role, title, value, states, and actions, so you can inspect long text or verify state before and after acting.
Instructions
Read one element live by element_index: role, title, description, value (up to max_chars, default 4000), frame, states (checked, selected, focused, disabled, expanded…), actions, settable attributes, help. Use it to read long text or to check a state before or after acting.
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": {
"element_index": "<element_index>"
},
"name": "mac_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | ||
| snapshot_id | No | ||
| element_index | Yes |