Fill in a field
ui_set_valueSets text in a text field, search field, or text area by ID, text, or role, falling back to select-all and typing when direct setting is unavailable.
Instructions
Set the text of a text field, search field or text area (by id, or by text/role), falling back to selecting all and typing.
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": {
"app": "<app>",
"value": "<value>"
},
"name": "ui_set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| app | Yes | App to control: finalcut, motion, logic, mainstage, compressor, pixelmator, keynote, pages, numbers, or any other app name, bundle ID or .app path | |
| role | No | Accessibility role without the AX prefix, e.g. Button, TextField, CheckBox, PopUpButton, MenuButton, Slider, Row, StaticText | |
| text | No | Text in the element's title, description or value (case-insensitive) | |
| exact | No | Require the whole text to match | |
| front | No | Bring the app to the front first. Off by default: apps are driven in the background so the user's screen isn't taken over. | |
| index | No | Which match to use when several match (0 = first) | |
| value | Yes | ||
| within | No | Only search inside this element id from ui_snapshot |