--action | enum | Click | Click, Drag, DragStart, DragMove, DragEnd, LongPress |
--x | number | 0 | Target X position in screen pixels (origin: top-left). For Drag action, this is the destination. |
--y | number | 0 | Target Y position in screen pixels (origin: top-left). For Drag action, this is the destination. |
--from-x | number | 0 | Start X position for Drag action. Drag starts here and moves to x,y. |
--from-y | number | 0 | Start Y position for Drag action. Drag starts here and moves to x,y. |
--drag-speed | number | 2000 | Drag speed in pixels per second (0 for instant). 2000 is fast (default), 200 is slow enough to watch. Applies to Drag, DragMove, and DragEnd actions. |
--duration | number | 0.5 | Hold duration in seconds for LongPress action. |
--button | enum | Left | Mouse button. Click and LongPress support Left, Right, and Middle. Drag actions support Left only; other buttons return an error. |
--bypass-raycast | flag | - | For Click, LongPress, Drag, and DragStart, bypass EventSystem raycast and dispatch pointer events directly to --target-path. Use when a raycast-blocking overlay visually covers the intended target. |
--target-path | string | "" | Hierarchy path of the target GameObject, for example Canvas/Panel/Button. Required when --bypass-raycast is used with Click, LongPress, Drag, or DragStart; prefer AnnotatedElements[].Path from screenshot JSON. |
--drop-target-path | string | "" | Optional hierarchy path of a drop target for Drag or DragEnd, for example Canvas/DropZone. Use this when the drop zone is also behind a raycast blocker. |