Watch an agent work a browser or a desktop: one frame per step with its pointer and clicks, an action log that moves the frame, pause, take over the screen yourself, and approval before a risky step runs.
On this page
Examples
Approve or deny the Send step, pause, or take over and click the screen.Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- frames
ViewerFrame[]- The screens: { id, alt, src? } for screenshots, or { id, alt, render } for a drawn screen laid out at frameSize and scaled to fit. alt describes the screen for screen readers.
- actions
ViewerAction[]- The steps, oldest first: { id, kind, label, frame, x?, y?, text?, at, risk?, approval? }. kind is click, double_click, move, type, key, scroll or wait; frame is the screen the agent saw; x and y are fractions (0 to 1) of the frame; at is ms from the start.
- frameSize
{ width, height }- Default
960 x 600 - The size drawn frames are laid out at, and the aspect ratio of every frame. Also turns x and y into pixels in the raw call.
- agent / target / title
Actor / "Browser"|"Desktop" / string- Default
Agent / Browser / - - Names the pointer and the approval, and labels the surface in the header.
- index / defaultIndex / onIndexChange
number- Default
newest - The step on screen (0-based). Uncontrolled it follows the newest step while live, until someone picks an earlier one. A Live button returns to it.
- mode / defaultMode / onModeChange
"watching"|"paused"|"control"- Default
"watching" - Pause freezes the view and the follow. Take over makes the frame clickable and hides the agent pointer; Hand back returns to watching. Your agent runtime does the pausing: these are callbacks.
- approvals / onDecision
Approval[] / (approval, decision) => void- A step with risk: "high" and an approval id that is not decided dims the frame, parks the pointer on its target and asks with Approval prompt (Approve, Deny).
- onFrameClick
({ x, y }) => void- In control mode: where you clicked, as fractions of the frame.
- live / showCall
boolean- Default
true / true - Follow new steps. Show the raw tool call (JSON in a Code Block) for the selected step.
- layout
container width- From 48rem wide the log is a column beside the frame. Narrower, a Steps button opens it in a bottom Sheet.
| Prop | Type | Default | Description |
|---|---|---|---|
| frames | ViewerFrame[] | - | The screens: { id, alt, src? } for screenshots, or { id, alt, render } for a drawn screen laid out at frameSize and scaled to fit. alt describes the screen for screen readers. |
| actions | ViewerAction[] | - | The steps, oldest first: { id, kind, label, frame, x?, y?, text?, at, risk?, approval? }. kind is click, double_click, move, type, key, scroll or wait; frame is the screen the agent saw; x and y are fractions (0 to 1) of the frame; at is ms from the start. |
| frameSize | { width, height } | 960 x 600 | The size drawn frames are laid out at, and the aspect ratio of every frame. Also turns x and y into pixels in the raw call. |
| agent / target / title | Actor / "Browser" | "Desktop" / string | Agent / Browser / - | Names the pointer and the approval, and labels the surface in the header. |
| index / defaultIndex / onIndexChange | number | newest | The step on screen (0-based). Uncontrolled it follows the newest step while live, until someone picks an earlier one. A Live button returns to it. |
| mode / defaultMode / onModeChange | "watching" | "paused" | "control" | "watching" | Pause freezes the view and the follow. Take over makes the frame clickable and hides the agent pointer; Hand back returns to watching. Your agent runtime does the pausing: these are callbacks. |
| approvals / onDecision | Approval[] / (approval, decision) => void | - | A step with risk: "high" and an approval id that is not decided dims the frame, parks the pointer on its target and asks with Approval prompt (Approve, Deny). |
| onFrameClick | ({ x, y }) => void | - | In control mode: where you clicked, as fractions of the frame. |
| live / showCall | boolean | true / true | Follow new steps. Show the raw tool call (JSON in a Code Block) for the selected step. |
| layout | container width | - | From 48rem wide the log is a column beside the frame. Narrower, a Steps button opens it in a bottom Sheet. |
When to use
When to use
- Letting a person watch an agent that drives a browser or a desktop, step by step, with the pointer and clicks on screen.
- Pausing the agent, taking the screen over, or approving a risky step (sending, paying, deleting) before it runs.
When not to use
- A terminal session or a command log with no screen: use Agent Terminal.
- Only the order and timing of tool calls, not a screen: use Trace Waterfall.
- A plain approval with no screen behind it: use Approval Prompt.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Computer Use Viewer to my app and wire it to my own data.
- I need letting a person watch an agent that drives a browser or a desktop, step by step, with the pointer and clicks on screen. Set that up with the Knowns UI Computer Use Viewer.
- Which Computer Use Viewer props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "computer-use-viewer" }) and search_docs({ query: "computer use viewer" }). Pro props, full examples and source come back once your license key is in the MCP config.