input_sequence
Inject timed sequences of keyboard, mouse, and wheel events into DOSBox to automate complex input patterns or replay recorded sessions.
Instructions
Inject a timed sequence of key, mouse, and wheel events. For complex input patterns or recorded replays. Mouse movement is RELATIVE (x_rel/y_rel deltas from the current cursor position); there is no absolute positioning. To reach a known position, sweep past a screen corner first (e.g. x_rel:-4000, y_rel:-4000 pins the cursor top-left), then move by the target offset. A click is a mouse_button press event followed by a release event. Unknown fields are rejected with an error naming the allowed ones.
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": {
"events": "<events>"
},
"name": "input_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| events | Yes | Input events, dispatched in order on one timeline. |