cu_bg_dispatch
Dispatch focusless mouse and keyboard actions—clicks, typing, scrolling, dragging—to a target window using PostMessageW or WM_SETTEXT for background automation.
Instructions
Dispatch focusless mouse/keyboard actions via PostMessageW or SendMessageTimeoutW(WM_SETTEXT).
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": {
"hwnd": "<hwnd>",
"action_type": "<action_type>"
},
"name": "cu_bg_dispatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes | Target window handle (HWND). | |
| text | No | Text to type or set. | |
| norm_x | No | X on [0..1000] grid. | |
| norm_y | No | Y on [0..1000] grid. | |
| dry_run | No | Synthesize messages without OS dispatch. | |
| drag_steps | No | Intermediate interpolation steps for drag. | |
| end_norm_x | No | End X on [0..1000] grid for drag. | |
| end_norm_y | No | End Y on [0..1000] grid for drag. | |
| action_type | Yes | Action type (click, double_click, right_click, move, drag, scroll, type_text, wm_settext). | |
| wheel_delta | No | Scroll wheel delta (default -120). | |
| desktop_name | No | Desktop session name (default 'Default'). |