desktop_act
Executes desktop UI actions—clicks, typing, keypresses, app/window control, macros, clipboard, and waits—with optional post-action diff, OCR, tree, or screenshot capture.
Instructions
Execute desktop actions with 3-tier smart hybrid delivery, Macro v2 playbooks, wait_until_stable, icon template_path matching, SoM grid: clicks, rich clipboard (set_files/set_image/get_text/set_text), and merged observe_after='diff|tree|ocr|hybrid|screenshot'.
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": {
"action": "<action>"
},
"name": "desktop_act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| key | No | ||
| args | No | ||
| keys | No | ||
| text | No | ||
| vars | No | ||
| delta | No | ||
| files | No | ||
| query | No | ||
| state | No | ||
| steps | No | ||
| action | Yes | ||
| region | No | ||
| target | No | ||
| verify | No | ||
| window | No | ||
| command | No | ||
| dry_run | No | ||
| delivery | No | auto | |
| settle_ms | No | ||
| stable_ms | No | ||
| threshold | No | ||
| horizontal | No | ||
| image_path | No | ||
| macro_name | No | ||
| ocr_engine | No | auto | |
| sub_action | No | click | |
| clear_first | No | ||
| duration_ms | No | ||
| match_index | No | ||
| snapshot_id | No | ||
| timeout_sec | No | ||
| clipboard_op | No | ||
| control_type | No | ||
| macro_params | No | ||
| observe_after | No | none | |
| restore_focus | No | ||
| template_name | No | ||
| template_path | No | ||
| allow_dangerous | No | ||
| macro_description | No | ||
| background_capture | No |