Execute Action
execute_actionRun single or chained mouse and keyboard actions to automate Wayland desktop tasks, including clicks, typing, scrolling, dragging, and key presses.
Instructions
Execute system actions with chaining support. Handles both single actions and chained sequences. Args: action: Action string in format: Single: "prefix:params" (e.g. "click:100,200") Chain: "chain:action1;action2" (e.g. "chain:click:100,200;type:hello") Supported Actions: type:text - Type text press:key - Press key click/click: - Click at current position (both formats supported) move_to:x,y - Move to absolute coordinates (default) move_to:rel:x,y - Move relative to current position drag:x1,y1:x2,y2 - Drag between points scroll:amount - Vertical scroll (positive=up, negative=down) Note: Each unit = 1 scroll notch (120 = high-def scroll). Typical: 15-120. scroll:horizontal:amount - Horizontal scroll Note: Each unit = 1 scroll notch (120 = high-def scroll). Typical: 15-120. Returns: dict: {'success': bool, 'error': str}
Declared as a dict because that is what every code path returns. It was
annotated -> bool while returning dicts, and a strict MCP client rejects the
structured content against the declared schema, so the tool was unusable
from a conforming client.
Example: execute_action("click:100,200") execute_action("chain:click:100,200;type:hello;press:Enter")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||