mac_set_value
Set an accessibility element's value by index for text fields, checkboxes, tabs, menus, and sliders—no pointer input, with read-back verification.
Instructions
Set an element's value by element_index, by role: text fields (whole value; AXSecureTextField never echoes the value), checkboxes / switches / radio buttons (true|false, idempotent: nothing sent when already so; a mixed checkbox is pressed up to twice until it reaches the requested state), disclosure triangles and expandable rows (true|false), rows / cells / tabs (true selects), pop-up buttons, menu buttons and combo boxes (an option's title: opens the menu, picks the one matching option, closes it again if none or several match), sliders / steppers (a number within min-max). Semantic only (no pointer). delivered_verified only when the value read back changed to the one asked for (text: line endings and outer white space aside); a field already at that value gets nothing sent (not_delivered, already).
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>",
"value": "<value>"
},
"name": "mac_set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| timeout_ms | No | ||
| snapshot_id | No | ||
| element_index | Yes |