mouse
Moves the host cursor to a target coordinate and optionally clicks a button. Click actions verify a recent snapshot reference to block stale or foreign input.
Instructions
Move the mouse (and optionally click) on the host. DESTRUCTIVE (HID input).
A click must carry the observed_frame_ref it was planned against
(from a prior snapshot); it is refused — re-snapshot and retry — if
the host rebooted/swapped media since, the observation is older than
KVM_PILOT_MCP_FRAME_MAX_AGE (60s default, #141), or the ref wasn't
issued by this server. Move-only (button omitted) needs no ref.
coord_space: percent (0.0-1.0, default — survives resolution
changes), pixel, or raw kvmd. Gated by KVM_PILOT_MCP_ALLOW_HID
per-invocation approval.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Horizontal target in coord_space units (percent: 0.0 left to 1.0 right). | |
| y | Yes | Vertical target in coord_space units (percent: 0.0 top to 1.0 bottom). | |
| button | No | Button to click after moving. Omit for a move only (no frame ref needed). | |
| confirm | No | Per-invocation approval when the client cannot prompt a human: set true to approve this exact call under the operator's standing policy. Leave false when the client supports elicitation (a human is asked). Never pre-set it speculatively; a denial returns outcome=not_confirmed. | |
| profile | No | Profile name from ~/.config/kvm-pilot/config.toml selecting which KVM/BMC (and its managed host) this call targets. Omit to use the server's default (KVM_PILOT_PROFILE). | |
| coord_space | No | percent = fraction of the screen (survives resolution changes); pixel = capture pixels; raw = kvmd units. | percent |
| observed_frame_ref | No | frame_ref from the snapshot the click was planned on. Required for a click; a stale or foreign ref is refused. |