AI Computer contracts
Recorded task versions, browser and device targets, asynchronous runs, approval, and recovery.
Implementation preview: These contracts describe implemented platform interfaces. Executor provisioning and customer availability are separate. Do not assume a reachable operation or accepted task establishes a working browser or Windows connector.
AI Computer extends Custom Tools with recorded task definitions. A definition binds inputs, recorded actions, checks, allowed targets, change boundaries, and receipt requirements. Saved versions are immutable; runs pin both the version ID and its SHA-256 hash.
Operation families#
| Family | Operations | Purpose |
|---|---|---|
| Runs | tools.computer_run.start, inspect, stop, commit | Start asynchronous work, inspect state, request a stop, or continue an approved prepared change |
| Browser sessions | tools.computer_session.sign_in, open, ticket, close | Authorize sign-in, access a scoped session, or close it |
| Business PCs | tools.computer_device.pairing_code, pair, list, revoke | Pair an authorized device and manage its access |
Run operations declare CLI and MCP bindings; use discovery and the current schema for their required input and exposure. Browser session controls are dashboard/internal interfaces, not published SDK, CLI, or MCP commands. Device operations have their own principal and surface restrictions. These families are not a generic shell, remote desktop, or arbitrary browser-evaluation API.
Start a run#
tools.computer_run.start requires tools.write, tools.read, and conversations.read, the agent
and action IDs, pinned versionId and versionSha256, a scoped conversation, collected inputs, and
an idempotency key. Select exactly one target:
targetKind: "site_account"withsiteAccountIdtargetKind: "desktop_device"withdeviceId
The accepted response is an asynchronous task receipt. Inspect the existing task and run to follow execution. Do not create another request key merely because the original response is delayed. The server validates the enabled task, scope, version, target, and saved customer context.
Customer confirmation and configured staff approval happen at the change boundary. Starting the run does not confer authority to submit the prepared effect. Caller-supplied confirmation flags cannot replace that review.
Inspect and continue#
Read the run using the agent and run ID. Detailed state includes the revision, pinned version, target, stop request, note, and any prepared or executing effect. Task states summarize progress; the run and effect provide the detail needed for review and recovery.
Prepared changes are bound to their exact plan and revision. Inspect the required approval before calling the commit operation. If inputs or observations change, obtain a fresh preparation and review rather than reusing an old approval.
Stop requests also carry the expected revision and a reason. A requested stop is not evidence that an in-flight destination change was cancelled or rolled back.
Uncertain effects#
An effect that may have been submitted must be checked through its result reader. Recovery can confirm success, confirm no effect, or remain unresolved. An unresolved result blocks another effect attempt. Recovery does not automatically resume the customer conversation.
Treat session tickets, pairing credentials, recordings, and captured media as private. Do not place them in public logs or expose them to an unrelated agent or project. Use scoped account or device access and revoke it through the supported operation when it is no longer needed.