Playtest action
gamealia_playtest_actPerform one click, key press, drag, or wait in a running playtest session; returns new screenshot, step count, console errors, ad requests, and frame-change feedback.
Instructions
Performs one action (click, key, drag or wait) in a session started by gamealia_playtest; actions of one session run one at a time, in order. Returns the new screenshot, the step number and steps left, the SDK calls since the last step, new console errors, ad requests and how much the frame changed (0% often means the input did nothing). Fails if the session ended or expired; when steps run out, call gamealia_playtest_stop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | One action: {type:"click",x,y} | {type:"key",key,holdMs?} | {type:"drag",from:{x,y},to:{x,y}} | {type:"wait",ms}; coordinates in viewport pixels | |
| sessionId | Yes | Session id returned by gamealia_playtest |