Click a button by name
amiga_ui_clickClicks a gadget by its label with the real mouse, bringing its window to the front when needed, and reports which gadget and window were clicked.
Instructions
Click a gadget found by its label (as amiga_ui_list shows it) with the real mouse, bringing its window to the front first if needed. 'close', 'depth', 'zoom' and 'size' name a window's border gadgets. If several gadgets match, narrow it with window, kind or nth, or use the gadget's id. Returns which gadget was clicked, in which window; fails if none matches. A click can make the program do anything that button does (Quit, Delete, ...).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "amiga_ui_click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | the gadget's id from amiga_ui_list (GadgetID); stays right when the layout moves | |
| nth | No | which of several matches, from 1 | |
| kind | No | button, string, toggle, cycle, custom, ... | |
| name | No | the gadget's label | |
| double | No | double-click | |
| window | No | part of the window title |