press_key
Presses and releases a single key on the managed host's console, such as Enter, Escape, or F2. Use it to submit forms or navigate firmware menus.
Instructions
Press and release one key on the managed host's console. DESTRUCTIVE (HID).
For a single non-text key: Enter to submit, Escape, F2/F12
at POST, arrows and Tab in firmware menus. For a chord use
send_shortcut; for words use type_text; for Ctrl+Alt+Del use
ctrl_alt_delete (power gate). Nothing echoes back — snapshot after.
Same gating as type_text: KVM_PILOT_MCP_ALLOW_HID + per-invocation
approval. Returns the typed act outcome (receipt, or the denial reason).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | One kvmd key code, case-sensitive: Enter, Escape, Tab, F2, ArrowDown, Space, KeyA, Digit1... Not a chord. | |
| 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). |