send_events
Simulate multi-step input sequences like drag-and-drop or slider scrubs by injecting events with frame steps between them, so animations and zone detection advance in one call.
Instructions
Send a sequence of input events with game frame steps between them. Enables multi-step interactions (drag-and-drop, slider scrub, card hand drag) in a single call.
Each entry in the events array is either:
An event: {type, x, y, button, ...} (same params as send_event)
A frame step: {step: N} — advance N game frames (processes animations, state machines, zone detection)
The game must be paused for frame steps to work. Use auto_pause:true to auto-pause before and resume after.
Example drag: [ {type:"mouse_down", x:100, y:200}, {step:2}, {type:"move", x:200, y:150}, {step:1}, {type:"move", x:300, y:100}, {step:1}, {type:"mouse_up", x:300, y:100} ]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Array of event objects ({type,x,y,...}) and frame steps ({step:N}) | |
| auto_pause | No | Auto-pause before executing and resume after (default: false). Enables frame steps without manual pause/resume. |