Manage Horizon native VNC Device panels through the device_panel MCP tool. Device panels work on every platform and are read-only for agents; desktop input uses separate standalone tools. Browser pages use horizon-browser.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Horizon Device?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/peters-horizon-device)
---
name: horizon-device
description: Manage Horizon native VNC Device panels through the device_panel MCP tool. Device panels work on every platform and are read-only for agents; desktop input uses separate standalone tools. Browser pages use horizon-browser.
---
# Horizon native VNC Device panel
Use this skill for Horizon native VNC Device panels (`device_panel`). Browser
pages use the `horizon-browser` skill and `browser_*` tools. Never drive a
browser with device input.
## Native VNC Device panel
Observe interactive native tests live through a **Horizon native VNC Device
panel in the user's current workspace**. Use a task-owned isolated desktop and
private application state. Do not use noVNC or a browser viewer, or substitute
screenshots or recordings for the live panel.
`device_panel` operations are `create`, `list`, `inspect`, `screenshot`,
`video`, `visibility`, `reveal`, `reconnect`, and `close`.
Use the public `device_panel` MCP tool for viewer lifecycle. Call
`operation: "list"` to discover panels in the caller's workspace. Create a
task-owned viewer with `operation: "create"` and the fixture's numeric loopback
`endpoint` (IP and nonzero port); retain its returned `panel_id`. This requires
a supporting Horizon host: an agent in a Horizon panel (agent, Shell, or
Command) uses that panel's workspace and host, and an external local MCP session
uses the active workspace when one Horizon window runs in the same Horizon home
(when multiple Horizon windows run, start the agent inside the target window).
The tool does not provision a desktop or forward input. The source checkout's
`scripts/device-smoke/README.md` describes the isolated fixture; launch it with
`--native-view` and use its `vnc_address`, not a browser URL.
A VNC server on another machine's loopback is reached with optional `ssh` in
create: `{ "host": "lab", "user": "deploy", "port": 2222 }` (user and port
optional). `endpoint` is then the address as seen from that SSH host, typically
`127.0.0.1:5900`. Horizon runs `ssh -W` with its own SSH configuration and
keys, with strict host-key checking pinned regardless of `ssh_config`, so the
host must already be trusted in `known_hosts`; never pass credentials, key
paths or ssh options. Labels may only contain letters, digits, `.`, `_`, `-`
(and `:` in an IPv6 host), at most 253 characters for the host and 64 for the
user, and are refused otherwise, so nothing reaches ssh as an option or a shell
fragment. Inspect and list report `ssh` for tunnelled viewers, and
`connection_error` carries ssh's last lines when the tunnel fails.
An untrusted host is a refusal, not an unreachable host. When the tunnel fails
that way, inspect returns `connection_failure`: `code: "host_not_trusted"` when
ssh holds no `known_hosts` entry, or `code: "host_key_changed"` when
`known_hosts` holds a different key. It also carries `ssh_host_key` with the
`host` and `port`, `ssh_host_key.observed` with the `key_type` and `sha256`
fingerprint that the host presented to a probe, and `action`, which is what the
person does. The probe repeats the tunnel's own ssh configuration, so the
fingerprint is the key that ssh saw; `observed` is absent when a `ProxyJump`, a
`ProxyCommand` or a `HostKeyAlias` keeps a direct probe from repeating that
connection, and `action` then says which one applies. Do not retry either code;
they need a person. Report the host, the observed fingerprint and the action,
and say that a host key must be compared with the machine out of band before it
is added. Never accept a host key, write `known_hosts` yourself, or claim that
a probe proves which machine answered.
When the person reports that the host is trusted, call `reconnect` and inspect
again. Without a code, `connection_error` alone stands and the failure may be a
network or ssh configuration problem.
When known, include optional `identity` in create: `machine_name`, `hostname`,
`ip_addresses` (numeric IPv4/IPv6 list), and `tailscale_name`. These are labels
supplied by the session creator, not verified identity. Use details for the
actual target machine; never substitute the local tunnel endpoint or the
viewer's own hostname. Omit unknown fields. Inspect/list return these labels.
Creation returns immediately. Use `operation: "inspect"` and the returned id to
check `connection: "connected"`. For a visible, on-screen viewer, also verify
`image_received`, `image_displayed` and an advancing `frame_sequence` while target
output changes. `visible` is only a presentation setting; an image can be off
canvas or clipped. Current hosts keep uploading about once a second while a
viewer is not drawn, so `frame_sequence` keeps advancing off canvas; older hosts
pause uploads there, so also accept an advancing `received_frame_sequence` while
target output changes as reception evidence. That counter tracks received image
updates independently of the uploaded-image `frame_sequence`. Establish live
presentation once per connection (`image_displayed` with advancing frames). If
the viewer later reports `not_rendered` with `outside_canvas` while
`last_displayed_age_millis` is present, the person navigated away: keep testing
and recording, do not pause the lane, and do not reveal again just to advance
counters.
Both counters reset on reconnect and neither is a heartbeat: a stationary desktop
is not a connection failure. Older hosts may omit reception progress; do not
interpret a missing/default-zero counter as a failure. Set
`operation: "visibility", visible: true` for a hidden owned viewer, then verify
actual presentation. Never claim that a separate isolated viewer is visible to
the user merely because its screenshot is available.
Check this automatically; never ask a human to confirm visibility or advancing
frames. Save at least three timestamped public inspections, two seconds apart.
The current `frame_sequence` counts uploaded images, not independent transport
heartbeats. An unchanged sequence on a static or unknown target does not prove a
stalled connection. A displayed static image proves presentation only; changing
target output and sequence advancement are needed for live-motion evidence.
Recover only the task-owned viewer, with at most one visibility request when
hidden and one reconnect when stopped or disconnected. Inspect again after each
request; do not reconnect a healthy connection merely because its image is not
displayed. Do not close/recreate viewers in a loop. Retain the attempt budget
across retries for the same incident. For a viewer that has never presented an image,
a connected, visible, unpresented viewer requires `operation: "reveal"` on hosts
advertising it. Current hosts return `navigation_preserved` once this viewer has
presented a non-discarded image, including after reconnect or ownership transfer.
Restored viewers also preserve the saved canvas when their previous display
history is unavailable; reconnect grants transport ownership, never navigation
permission. Keep background testing, recording and inspection running; use the
UI to return to the viewer when needed. Never close/recreate it to bypass this
protection.
Reveal an owned viewer at most once; it changes the viewport without reconnecting
and answers once the host has drawn the viewer, or after at most three seconds
with the presentation reason and host exclusion that kept it off screen (a host
running no UI frames cannot draw it and answers when that bound expires). In the
reveal answer, `image_displayed` is true only for a draw after the reveal applied.
A drawn image is not live-motion proof. When diagnostics are present, record
connection generation, decoded-frame sequence and age, sampling pause, last
displayed age and presentation reason. Current hosts keep reception and bounded
uploads active while hidden or off canvas; older hosts may pause them. Neither
`not_rendered` nor a legacy sampling pause proves a transport failure;
`awaiting_frame` differs from `clipped`. Decoded pixels alone do not prove
display. Older hosts may lack reveal or diagnostics: record
`presentation_unverified` and the missing capability instead of asking the user
to move or watch the panel. Continue non-interactive checks. Never restart the
user's Horizon to upgrade these capabilities without authorization.
`operation: "reconnect"` explicitly connects and acquires an unowned/restored
viewer; do not take another owner's panel. Restored viewers stay stopped until
reconnected. `operation: "close"` closes an owned viewer without terminating its
target. On `host_timeout`, list before retrying a mutation because it may have
completed. If the tool, supporting host or visible native viewer is unavailable,
report the blocked lane. Do not fall back to noVNC, edit private runtime files,
restart active sessions, or automate the developer's desktop.
## Read-only boundary and external input
The native Device panel is read-only for agents: a person may turn its Interact
toggle on in the UI, but no tool operation can.
Horizon bundles only the VNC viewer panel (`device_panel`); native desktop input
and mobile device automation live in separate standalone tools (such as
`peters/appctl`) that are configured independently on the target display.
Native View controls change local rendering, not target desktop geometry or VNC
compression.
## Viewer screenshots and video
Use `device_panel` with `operation: screenshot` and the owned `panel_id` to get
full connected desktop pixels as a private PNG with dimensions. Local crop and
scale controls do not affect this capture. Optional `copy_to_clipboard` defaults
false; `clipboard_requested` proves native host dispatch, not OS acknowledgement.
Stopped, disconnected, or no-frame viewers refuse capture. Capture changes no
visibility, focus, canvas, or Interact state. Only eight exports remain until
panel close or normal host exit. A screenshot does not replace live-motion evidence.
`device_panel video` operations are `start`, `status`, and `stop`.
For feature evidence, use `device_panel` with `operation: video`, the owned
`panel_id`, and `action: start|status|stop`. Start before the flow. It records the
full VNC desktop as private WebM without audio, targets 5 fps at the full desktop
size, and continues offscreen. Every action requires the exact owning agent. It
stops on disconnect, after five minutes, or at 256 MiB. The host writes a frame
only when the desktop changed, so a screen that changes less often keeps every
state and reports a low `effective_fps`.
The target is not a guarantee: a whole desktop is re-encoded per frame, so a
1600 × 900 desktop with continuous motion recorded about 6 fps in a release
build and about 3 fps in a debug build on a 48-thread reference host, and noisy
or larger desktops record less.
Stop is asynchronous: read status at a bounded interval until
`recording.capture.active` and `recording.finalizing` are both false. Then read
`recording.capture.quality` and `encoder_failed`, and decode representative
frames. `quality` is `unknown`, `good`, `degraded` or `poor`; `degraded` and
`poor` mean the host wrote fewer of the states the desktop offered, so a brief
state can be absent. Report that instead of claiming the recording shows motion,
and do not present a `poor` recording as motion evidence.
The file path is on the Horizon host. Copy it before panel close or four subsequent
recordings. Browser pages use `browser_video`.
On older hosts without viewer video, use a recorder explicitly scoped to the
owned isolated display. If recording is unavailable or stalls, report that lane;
still images do not replace motion evidence. Keep finalized evidence private.
Public demonstrations use generic fixtures and synthetic content only.
Client-side scaling does not reduce VNC wire bandwidth.
Close only task-owned viewers and application/display fixtures, then verify
children exited and target configuration expired. Horizon injects `device_panel`
on the browser MCP; this skill does not start a viewer or register any external
input server.