set_value
Write a value directly into a text field through macOS accessibility, including background apps, without using the keyboard or clipboard.
Instructions
Set a text field's value directly through accessibility. Works in background apps and with any language, without touching the keyboard or clipboard.
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": {
"value": "<value>"
},
"name": "set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Element id from inspect, e.g. "1.3.2" | |
| app | No | Process name, e.g. "TextEdit". Defaults to the frontmost app. Works on background apps. | |
| role | No | Role to match, e.g. "AXButton". Alone, it must match exactly one element. | |
| label | No | Element name/description/value to match (used when id is not given) | |
| value | Yes |