Set Value
set_valueChange the value of any accessible UI element on macOS by targeting an element reference or screen coordinate. Use to populate text fields or update controls programmatically.
Instructions
Set an accessibility element value.
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": {
"target": "<target>",
"value": "<value>"
},
"name": "set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Replacement value. | |
| target | Yes | ||
| strategy | No | Prefer accessibility, require accessibility, or require event dispatch. | auto |
| return_state | No | Optionally observe the target again after the action. | none |