click
Simulate mouse input on PySide6 widgets or screen coordinates, specifying button type and relative offsets for precise UI interaction.
Instructions
Click a widget or screen coordinate.
widget_id only: clicks the center of that widget
widget_id + x/y: clicks at (x, y) relative to the widget's top-left
x/y only: clicks at (x, y) relative to the main window button: 'left' (default), 'right', or 'middle'
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": "click"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| pid | No | App pid from launch_app. Omit to target the last launched app. Required only when several apps are running and you need a specific one. | |
| button | No | left | |
| widget_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |