Omniscio

Capture (agent screenshots and screen recordings, by id)

The capture surface lets an agent or script take a screenshot or drive a screen recording through the local control server, then fetch any capture's metadata, transcript or share link by id. Captures land in the same library as the user's own snips and recordings. It ships off by default. Two of its approval switches start ON: a spawned agent's take starts only after the person approves the card (either recorder), and the four paid-AI calls — title, summarize, save-to-vault and the Teach Recorder skill run — wait for approval by default. Stopping a running take applies at once.

On this page

What it is

Capture is the agent-facing half of Omniscio's screen capture: a script, a job or an agent asks the app to grab the screen or record it, then reads the result back by id. It has no screen of its own — a family of routes on the local control server rather than a panel.

It is separate from the human Screen Recorder (the recorder, editor and library a person uses directly), but the two meet in one place: a capture an agent takes lands in the same library as one the user made by hand. Every capture — a snip (a still screenshot) or a recording (a screen video with a duration, transcript and marked moments) — is addressed by an id, the handle every read-back, share, caption and AI route takes.

Where to find it

For a person, there is no screen. Capture is the local control server every Omniscio install runs at 127.0.0.1:19519, reached by a script or an agent.

Because it grabs the user's screen it is privacy-sensitive and ships OFF, behind the Settings → Optional Features → "Agent Screen Capture" switch; until it is on, the routes that grab or mark the screen refuse with 403 { disabled: true }. Editing the library you already have (rename, move, delete, folders, export, captions, transcript edits, summarize) does not grab the screen, so it needs only Screen Recorder on. Captures appear in the Screen Recorder library beside your own, and for an agent the surface is documented in the bundled omniscio-control skill's capture file.

How it behaves

Every route is bearer-authenticated and answers JSON.

Taking a capture. POST /capture/screenshot grabs the whole desktop (or a region) and answers 201 with the new capture's safe metadata. POST /capture/recording/start begins a recording and /capture/recording/stop stops the live one; it transcodes asynchronously, so a stop reports processing — poll the capture by id until ready. An agent-started take always carries a hard length cap: 60 seconds when the ask names no maxDurationMs, and never more than five minutes, so a take can never run unbounded even if the asking session dies. An agent-started take is silent on the user's screen: no countdown, no recording bar and no webcam bubble, so stop it yourself with /capture/recording/stop rather than expecting the user to press a Stop button.

Choosing what to record. GET /capture/sources lists the live screens and windows as { id, type, label, live } — the ids POST /capture/recording/start accepts, or a display number counting from 1. live is true for the source a take running right now is recording. A scoped agent session may call it (it is the step BEFORE asking for a take), and it answers 403 { disabled: true } while Agent Screen Capture is off, because a list of the open windows is itself a survey of the screen. forAgent: true on the start body asks for a marked take: the consent card says so, the marking tools arm, and while Record for Agent is switched off that ask is refused rather than started unmarked. A start body naming an unknown field answers 400 naming that field and listing the accepted ones.

Handing it over without buying it twice. POST /capture/:id/send-to-agent { projectId } opens a new review conversation — a real paid session — and is idempotent on the work: an identical retry (same recording, same project, same kept moments) replays the first answer instead of creating a second conversation, and only a success is remembered, so a failure stays retryable. The route owns a five-minute deadline, because packaging a recording plus the optional video pass does not fit the CLI's default ceiling and used to answer 504 over work that then succeeded.

Finishing the take you started. A session token is admitted to /capture/recording/stop, GET /capture/state, GET /capture/recordings, GET /capture/:id, /capture/:id/revoke-share, DELETE /capture/recordings/:id and the live-take device flips /capture/recording/toggle-mic / /capture/recording/toggle-cam only for a take that same session started — the recording's requested_by_session_id, written at start from the session the caller's token proves. The two toggles are the CLI twins of the recording bar's own mic and camera buttons: same service call, so there is no second implementation, and each answers the state the take is in now ({ micEnabled }, { camEnabled }). Both take no request body — a body naming a field answers 400 rather than being silently dropped — and with no take live they answer 409. A session's camera flip changes the take and nothing else: it never saves the "start with the camera" preference the bar's own button writes, and it is refused while the take was approved without a camera and the camera is off (turning one off is always allowed), because turning one on would record a device nobody agreed to. Anything else answers 403, including the person's own takes (they have no requesting session). A session's library list is filtered to its own takes, so a page never shows another session's recording, and every page carries scope — all for the full-trust key, or own-takes with a note for a session token — so a scoped page says so instead of reading as the person's whole library. Deleting a take it started applies at once, because there is no library to protect — it is a take the session recorded moments ago; every other caller still gets the always-approval card. A stop that could not be COMPLETED answers 409, and the take is not lost: its recorded parts stay on disk, the capture reads error, and it waits in the user's Recovered list to finish or discard in one click — it never goes on reporting processing for a take nothing is working on. GET /capture/state and /capture/recordings report live state and list the library. GET /capture/state also carries failedTakeRate — { failed, total, rate, windowDays, since } over the takes that started inside a rolling window (default 30 days; ?windowDays= between 1 and 365), where a failed take is one that ended with no usable file and rate is 0 when the window holds no takes.

Reading a capture back. GET /capture/:id returns one capture's safe, path-scoped metadata by id: type, status, transcript, AI title / TL;DR / chapters, duration and share token — plus title, the name the library shows — a manual rename wins over the AI title, and an unnamed take is named by its capture time, the same display rule every surface uses (the library grid, the share page and the retention preview all resolve a title through recordingDisplayTitle), and shareUrl, the live share link, resolved through the app's own share lookup so it is null while the take is unshared or once the link is revoked or expired. The same three facts also ride a nested share: { url, token, expiresAt }, named as the share layer, the share row and /share/* name them; shareUrl stays as the older alias of share.url for one release. A failed take also says why: errorReason (the fixed failure code, e.g. no-first-frame), errorStage (where in the take it failed) and failureNote (the plain sentence the library shows); all three are null for a take that did not fail or was recorded before reasons were kept, and the same three ride each row of GET /capture/recordings. Neither link field is a credential: shareUrl is the link a person would open, never the bare token. It never takes a caller path; the paths it returns are validated to live under the recordings folder (so a tampered row cannot coax out an arbitrary file), and video bytes are never streamed. Unknown or deleted id → 404.

Editing and captions. PATCH /capture/recordings/:id renames and/or moves a recording between folders. PUT /capture/:id/transcript saves edited caption segments; POST /capture/:id/captions starts a caption job on the recording's audio — Whisper on this computer on a default install, where Voice settings start on the on-device engine (sttEngine: 'local-fluid'), and where they select the cloud dictation engine the take's audio is sent to Omniscio cloud dictation under the user's sign-in, with Whisper as the fallback if the cloud road returns nothing. Neither spends paid AI, and captions answer processing at once (poll the capture). POST /capture/:id/crop and /capture/:id/frame cut a still from a finished recording and mint it into the calling conversation as a ready-to-paste image, so an agent can show the exact instant it means.

Sharing. POST /capture/:id/share publishes a live share link (default expiry seven days); /capture/:id/revoke-share stops sharing — neither spends AI money. A fresh recording's share may wait up to ~90 seconds for captions rather than refusing, so a record-then-share call still returns a link.

Paid AI — approval follows its switch. POST /capture/:id/suggest-title (auto-title a snip), /capture/:id/summarize (AI title, TL;DR, chapters from the transcript) and /capture/:id/save-to-vault (OCR a snip with the vision model and file its text as a KMS web-clip note) cost money. With the Screen-capture AI approval on, each enqueues an approval card quoting the rough cost and the paid call fires only after approval; that switch is on by default, so the calls wait for the person's click unless they turn it off. Auto-title refuses a video (409), and save-to-vault refuses anything but a snip (409).

Marking a moment. POST /capture/recording/moments (the canonical live-take root; /capture/moments and /capture/recordings/moments are aliases, and /capture/recording/box-overlay/commit marks the box half) buffers a moment into the recording that is live right now; with none running it answers 409. A mark is timed from the instant it was pressed, not from the instant the app got to the request: send pressedAtEpochMs (the wall-clock instant of your own press) and the moment is placed on the take's clock even if the app was busy for seconds. Leave it out and the mark is timed when the request is handled — several seconds late on a loaded machine — so a client that knows its own press time should always send it. An explicit atMs (a media time you already know) still wins over both.

The box-select overlay. POST /capture/recording/box-overlay opens the on-screen rubber-band drawing overlay; /capture/recording/box-overlay/commit records the rectangle the person drew — the one pair needing a human at the machine (the /capture/box-overlay* forms are aliases of both). Committing with no overlay open is a 409.

Library housekeeping. Folders are created and soft-deleted (reversibly); deleting a recording or running the bulk /capture/retention/cleanup is approval-gated because it erases on-disk media, irreversibly (/capture/retention/preview shows what a cleanup would remove). A cleanup never takes a capture that is still in use, one a live link points at, or a failed take whose raw pieces are still on disk — that last one is offered back in the Recovered list, and the same disk check decides both. Most routes need the Screen Recorder feature on; Screen Capture Projects — in-development — add /capture/projects….

Two limits: captures ride their own dedicated rate bucket (over it → 429); and a window on the sensitive-window deny-list refuses a capture with 409 { sensitiveWindowOpen: true } rather than grabbing it, failing closed if the deny-list is set but the windows cannot be read.

Last verified 2026-10-30