Sb3 Vm Input
sb3_vm_inputSend keyboard, mouse, and answer inputs to a headless Scratch VM to simulate user interactions during automated playtesting.
Instructions
Feed keyboard/mouse/answer input to the headless VM. (proxied)
keys accepts a JSON array of {key, isDown?} objects or a single key
name (wrapped to a full tap). Anything else that parses to a non-list
raises ValueError before touching the sidecar — the sidecar's zod
schema would reject it anyway, but failing here gives the shorter,
proxy-attributed error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | ||
| answer | No | ||
| mouseX | No | ||
| mouseY | No | ||
| mouseDown | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |