# Schemas: contracts/previewAutomation

> T3 Code · channel `stable` · v0.1.14 @ [`c0eed7328db2`](https://github.com/pingdotgg/t3code/tree/c0eed7328db2609e5a535be704e90638aef1c111) · 2026-12-05 · generated by Everdoc from source (no LLM).

67 entries.

<a id="schema-browsernavigationtarget"></a>

## `BrowserNavigationTarget`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:187](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L187-L210)
- Shape: `{ kind: "url"; url: string } | { kind: "environment-port"; port: ?; protocol?: ?; path?: string }`

<a id="schema-mcpcapabilityunavailableerror"></a>

## `McpCapabilityUnavailableError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:693](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L693-L703)
- Shape: `{ _tag: "McpCapabilityUnavailableError"; capability: TrimmedNonEmptyString; environmentId: makeEntityId; threadId?: makeEntityId; providerSessionId?: TrimmedNonEmptyString; providerInstanceId?: TrimmedNonEmptyString }`

<a id="schema-previewautomationactinput"></a>

## `PreviewAutomationActInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:449](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L449-L478)
- Shape: `{ action: "click" | "type" | "hover" | "select" | "drag" | "upload" | "press" | "scroll"; tabId?: PreviewTabId; locator?: TrimmedNonEmptyString; selector?: TrimmedNonEmptyString; x?: number; y?: number; button?: "left" | "right" | "middle"; clickCount?: number; text?: string; clear?: boolean; values?: string[]; source?: TrimmedNonEmptyString; target?: TrimmedNonEmptyString; paths?: string[]; key?: string; modifiers: unknown; deltaX?: number; deltaY?: number; timeoutMs?: number }`

<a id="schema-previewautomationactionevent"></a>

## `PreviewAutomationActionEvent`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:533](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L533-L540)
- Shape: `{ id: string; action: string; status: "running" | "succeeded" | "failed" | "interrupted"; startedAt: string; completedAt?: string; error?: string }`

<a id="schema-previewautomationclickinput"></a>

## `PreviewAutomationClickInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:321](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L321-L333)
- Shape: `{ tabId?: PreviewTabId; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString; x?: number; y?: number; timeoutMs?: number; button?: "left" | "right" | "middle"; clickCount?: number }`

<a id="schema-previewautomationclientdisconnectederror"></a>

## `PreviewAutomationClientDisconnectedError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:933](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L933-L940)
- Shape: `{ _tag: "PreviewAutomationClientDisconnectedError" }`

<a id="schema-previewautomationclientid"></a>

## `PreviewAutomationClientId`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:598](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L598)
- Shape: `TrimmedNonEmptyString`

<a id="schema-previewautomationcolorscheme"></a>

## `PreviewAutomationColorScheme`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:276](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L276)
- Shape: `"system" | "light" | "dark"`

<a id="schema-previewautomationconnectionid"></a>

## `PreviewAutomationConnectionId`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:600](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L600)
- Shape: `TrimmedNonEmptyString`

<a id="schema-previewautomationconsoleentry"></a>

## `PreviewAutomationConsoleEntry`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:515](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L515-L520)
- Shape: `{ level: string; text: string; timestamp: string; source?: string }`

<a id="schema-previewautomationcontrolinterruptederror"></a>

## `PreviewAutomationControlInterruptedError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:829](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L829-L855)
- Shape: `{ _tag: "PreviewAutomationControlInterruptedError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown; reason?: PreviewAutomationControlReason }`

<a id="schema-previewautomationcontrolreason"></a>

## `PreviewAutomationControlReason`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:817](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L817-L826)
- Shape: `"agentMismatch" | "unclaimedTab" | "humanControl" | "tabRequired" | "closed" | "interrupted" | "dialogPending" | "tabLimit"`

<a id="schema-previewautomationdialoginput"></a>

## `PreviewAutomationDialogInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:147](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L147-L152)
- Shape: `{ tabId?: PreviewTabId; accept: boolean; promptText?: string; authChallengeId?: string }`

<a id="schema-previewautomationdraginput"></a>

## `PreviewAutomationDragInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:364](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L364-L369)
- Shape: `{ tabId?: PreviewTabId; source: TrimmedNonEmptyString; target: TrimmedNonEmptyString; timeoutMs?: number }`

<a id="schema-previewautomationerror"></a>

## `PreviewAutomationError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:1011](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L1011-L1030)
- Shape: `PreviewAutomationRecordingTransferError | PreviewAutomationRecordingDesktopUpdateRequiredError | PreviewAutomationRecordingTooLargeError | PreviewAutomationRecordingDeadlineExpiredError | PreviewAutomationUnavailableError | PreviewAutomationNoAvailableHostError | PreviewAutomationUnsupportedClientError | PreviewAutomationTabNotFoundError | PreviewAutomationTimeoutError | PreviewAutomationControlInterruptedError | PreviewAutomationExecutionError | PreviewAutomationInvalidSelectorError | PreviewAutomationTargetNotEditableError | PreviewAutomationResultTooLargeError | PreviewAutomationClientDisconnectedError | PreviewAutomationRequestQueueClosedError | PreviewAutomationRemoteUnavailableError | PreviewAutomationMalformedResponseError`

<a id="schema-previewautomationevaluateinput"></a>

## `PreviewAutomationEvaluateInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:481](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L481-L487)
- Shape: `{ tabId?: PreviewTabId; expression: string; awaitPromise?: boolean }`

<a id="schema-previewautomationexecutionerror"></a>

## `PreviewAutomationExecutionError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:857](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L857-L870)
- Shape: `{ _tag: "PreviewAutomationExecutionError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown; reason?: string }`

<a id="schema-previewautomationhost"></a>

## `PreviewAutomationHost`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:609](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L609-L613)
- Shape: `{ supportedOperations?: PreviewAutomationOperation[] }`

<a id="schema-previewautomationhostfocus"></a>

## `PreviewAutomationHostFocus`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:616](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L616-L629)
- Shape: `{ connectionId: PreviewAutomationConnectionId; focused: boolean; liveTabs?: { threadId: makeEntityId; tabId: PreviewTabId; visible?: boolean }[] }`

<a id="schema-previewautomationhostidentity"></a>

## `PreviewAutomationHostIdentity`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:603](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L603-L606)
- Shape: `{ clientId: PreviewAutomationClientId; environmentId: makeEntityId }`

<a id="schema-previewautomationhoverinput"></a>

## `PreviewAutomationHoverInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:336](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L336-L337)
- Shape: `{ tabId?: PreviewTabId; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString; x?: number; y?: number; timeoutMs?: … }`

<a id="schema-previewautomationinvalidselectorerror"></a>

## `PreviewAutomationInvalidSelectorError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:872](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L872-L894)
- Shape: `{ _tag: "PreviewAutomationInvalidSelectorError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown; selectorKind?: "locator" | "selector"; selectorLength?: number; staleRef?: boolean }`

<a id="schema-previewautomationloaderror"></a>

## `PreviewAutomationLoadError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:78](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L78-L82)
- Shape: `{ url: string; code: number; description: string }`

<a id="schema-previewautomationmalformedresponseerror"></a>

## `PreviewAutomationMalformedResponseError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:963](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L963-L970)
- Shape: `{ _tag: "PreviewAutomationMalformedResponseError" }`

<a id="schema-previewautomationnavigateinput"></a>

## `PreviewAutomationNavigateInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:213](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L213-L229)
- Shape: `{ tabId?: PreviewTabId; url?: string; target?: BrowserNavigationTarget; readiness?: "load" | "domContentLoaded" | "none"; timeoutMs?: number }`

<a id="schema-previewautomationnetworkentry"></a>

## `PreviewAutomationNetworkEntry`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:523](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L523-L530)
- Shape: `{ url: string; method: string; status: number | null; failed: boolean; errorText?: string; timestamp: string }`

<a id="schema-previewautomationnoavailablehosterror"></a>

## `PreviewAutomationNoAvailableHostError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:742](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L742-L757)
- Shape: `{ _tag: "PreviewAutomationNoAvailableHostError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId?: TrimmedNonEmptyString; connectionId?: PreviewAutomationConnectionId; requestId?: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs?: number; remoteTag?: TrimmedNonEmptyString; remoteMessageLength?: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause?: unknown }`

<a id="schema-previewautomationopeninput"></a>

## `PreviewAutomationOpenInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:155](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L155-L184)
- Shape: `{ tabId?: PreviewTabId; url?: string; open?: boolean; show?: boolean; reuseExistingTab?: boolean; profileId?: TrimmedNonEmptyString }`

<a id="schema-previewautomationoperation"></a>

## `PreviewAutomationOperation`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:55](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L55)
- Shape: `["status", "open", "navigate", "snapshot", "click", "type", "press", "scroll", "evaluate", "waitFor", "recordingStart", "recordingStop", "resize", "setColorScheme", "dialog", "close", "upload", "hover", "select", "drag"]`

<a id="schema-previewautomationpressinput"></a>

## `PreviewAutomationPressInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:409](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L409-L416)
- Shape: `{ tabId?: PreviewTabId; key: " " | string; modifiers?: ("Alt" | "Control" | "Meta" | "Shift")[] }`

<a id="schema-previewautomationprofile"></a>

## `PreviewAutomationProfile`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:67](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L67-L71)
- Shape: `{ id: BrowserProfileId; name: string; incognito?: boolean }`

<a id="schema-previewautomationrecordingartifact"></a>

## `PreviewAutomationRecordingArtifact`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:588](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L588-L595)
- Shape: `{ id: string; tabId: PreviewTabId; path: string; mimeType: string; sizeBytes: number; createdAt: string }`

<a id="schema-previewautomationrecordingdeadlineexpirederror"></a>

## `PreviewAutomationRecordingDeadlineExpiredError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:1002](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L1002-L1009)
- Shape: `{ _tag: "PreviewAutomationRecordingDeadlineExpiredError"; threadId: makeEntityId; cause?: unknown }`

<a id="schema-previewautomationrecordingdesktopupdaterequirederror"></a>

## `PreviewAutomationRecordingDesktopUpdateRequiredError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:984](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L984-L991)
- Shape: `{ _tag: "PreviewAutomationRecordingDesktopUpdateRequiredError"; threadId: makeEntityId; cause?: unknown }`

<a id="schema-previewautomationrecordingstatus"></a>

## `PreviewAutomationRecordingStatus`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:579](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L579-L583)
- Shape: `{ tabId: PreviewTabId; recording: boolean; startedAt: string | null }`

<a id="schema-previewautomationrecordingtoolargeerror"></a>

## `PreviewAutomationRecordingTooLargeError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:993](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L993-L1000)
- Shape: `{ _tag: "PreviewAutomationRecordingTooLargeError"; threadId: makeEntityId; cause?: unknown }`

<a id="schema-previewautomationrecordingtransfererror"></a>

## `PreviewAutomationRecordingTransferError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:972](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L972-L982)
- Shape: `{ _tag: "PreviewAutomationRecordingTransferError"; threadId: makeEntityId; cause?: unknown }`

<a id="schema-previewautomationremoteunavailableerror"></a>

## `PreviewAutomationRemoteUnavailableError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:951](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L951-L961)
- Shape: `{ _tag: "PreviewAutomationRemoteUnavailableError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown }`

<a id="schema-previewautomationrequest"></a>

## `PreviewAutomationRequest`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:632](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L632-L642)
- Shape: `{ requestId: TrimmedNonEmptyString; threadId: makeEntityId; tabId?: PreviewTabId; tabIdExplicit?: boolean; agentSessionId?: string; operation: PreviewAutomationOperation; input: unknown; timeoutMs: number }`

<a id="schema-previewautomationrequestqueueclosederror"></a>

## `PreviewAutomationRequestQueueClosedError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:942](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L942-L949)
- Shape: `{ _tag: "PreviewAutomationRequestQueueClosedError" }`

<a id="schema-previewautomationresizeinput"></a>

## `PreviewAutomationResizeInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:232](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L232-L263)
- Shape: `{ tabId?: PreviewTabId; mode: "fill" | "freeform" | "preset"; preset?: PreviewViewportPresetId; width?: unknown; height?: unknown; orientation?: "portrait" | "landscape"; timeoutMs?: number }`

<a id="schema-previewautomationresizeresult"></a>

## `PreviewAutomationResizeResult`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:266](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L266-L272)
- Shape: `{ tabId: PreviewTabId; setting: PreviewViewportSetting; viewport?: PreviewRenderedViewportSize }`

<a id="schema-previewautomationresponse"></a>

## `PreviewAutomationResponse`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:658](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L658-L671)
- Shape: `{ clientId: PreviewAutomationClientId; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; ok: boolean; result?: unknown; error?: { _tag: TrimmedNonEmptyString; message: string; detail?: unknown } }`

<a id="schema-previewautomationresulttoolargeerror"></a>

## `PreviewAutomationResultTooLargeError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:916](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L916-L931)
- Shape: `{ _tag: "PreviewAutomationResultTooLargeError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown; maximumBytes?: number }`

<a id="schema-previewautomationscrollinput"></a>

## `PreviewAutomationScrollInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:419](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L419-L432)
- Shape: `{ tabId?: PreviewTabId; deltaX?: number; deltaY?: number; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString }`

<a id="schema-previewautomationselectinput"></a>

## `PreviewAutomationSelectInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:340](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L340-L354)
- Shape: `{ tabId?: PreviewTabId; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString; values: string[]; timeoutMs?: number }`

<a id="schema-previewautomationselectresult"></a>

## `PreviewAutomationSelectResult`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:357](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L357-L361)
- Shape: `{ selected: string[] }`

<a id="schema-previewautomationsetcolorschemeinput"></a>

## `PreviewAutomationSetColorSchemeInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:279](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L279-L282)
- Shape: `{ tabId?: PreviewTabId; colorScheme: PreviewAutomationColorScheme }`

<a id="schema-previewautomationsetcolorschemeresult"></a>

## `PreviewAutomationSetColorSchemeResult`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:285](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L285-L288)
- Shape: `{ tabId: PreviewTabId; colorScheme: PreviewAutomationColorScheme }`

<a id="schema-previewautomationsnapshot"></a>

## `PreviewAutomationSnapshot`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:543](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L543-L563)
- Shape: `{ url: string; title: string; loading: boolean; loadError?: PreviewAutomationLoadError; visibleText: string; accessibilityTree: unknown; consoleEntries: PreviewAutomationConsoleEntry[]; networkEntries: PreviewAutomationNetworkEntry[]; actionTimeline: PreviewAutomationActionEvent[]; screenshot: { mimeType: "image/png"; data: string; width: number; height: number }; fullScreenshot?: { data: string; width: number; height: number } }`

<a id="schema-previewautomationsnapshotinput"></a>

## `PreviewAutomationSnapshotInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:567](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L567-L570)
- Shape: `{ fullScreenshot?: boolean; pixelsRequired?: boolean }`

<a id="schema-previewautomationsnapshotmetadata"></a>

## `PreviewAutomationSnapshotMetadata`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:573](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L573-L576)
- Shape: `{ screenshot: { width: number; height: number } }`

<a id="schema-previewautomationsnapshotstage"></a>

## `PreviewAutomationSnapshotStage`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:785](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L785-L791)
- Shape: `"metrics" | "frames" | "page state" | "screenshot" | "accessibility tree"`

<a id="schema-previewautomationstatus"></a>

## `PreviewAutomationStatus`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:85](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L85-L144)
- Shape: `{ available: boolean; visible: boolean; notVisibleReason?: string; tabId: PreviewTabId | null; url: string | null; title: string | null; loading: boolean; loadError?: PreviewAutomationLoadError; control?: { owner: PreviewAutomationTabOwner; ownedByCaller: boolean; generation: number }; dialog?: { type: string; message: string; defaultValue: string; authChallengeId?: string } | null; viewportSetting?: PreviewViewportSetting; viewport?: PreviewRenderedViewportSize; fileChooser?: { multiple: boolean; accept: string } | null; downloads?: { fileName: string; path: string; sizeBytes: number; url: string; completedAt: string }[]; tabs?: { tabId: PreviewTabId; url: string | null; openerTabId?: PreviewTabId; owner?: PreviewAutomationTabOwner; ownedByCaller?: boolean; visible?: boolean; profileId?: BrowserProfileId }[]; profiles?: PreviewAutomationProfile[]; defaultProfileId?: BrowserProfileId }`

<a id="schema-previewautomationstreamevent"></a>

## `PreviewAutomationStreamEvent`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:645](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L645-L655)
- Shape: `{ type: "connected"; connectionId: PreviewAutomationConnectionId } | { type: "request"; connectionId: PreviewAutomationConnectionId; request: PreviewAutomationRequest }`

<a id="schema-previewautomationtabnotfounderror"></a>

## `PreviewAutomationTabNotFoundError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:771](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L771-L783)
- Shape: `{ _tag: "PreviewAutomationTabNotFoundError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown }`

<a id="schema-previewautomationtabowner"></a>

## `PreviewAutomationTabOwner`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:65](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L65)
- Shape: `"agent" | "human" | "unclaimed"`

<a id="schema-previewautomationtabtargetinput"></a>

## `PreviewAutomationTabTargetInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:62](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L62)
- Shape: `{ tabId?: PreviewTabId }`

<a id="schema-previewautomationtargetnoteditableerror"></a>

## `PreviewAutomationTargetNotEditableError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:896](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L896-L914)
- Shape: `{ _tag: "PreviewAutomationTargetNotEditableError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown; selectorKind?: "focused-element" | "locator" | "selector"; selectorLength?: number }`

<a id="schema-previewautomationtimeoutdetail"></a>

## `PreviewAutomationTimeoutDetail`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:793](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L793-L796)
- Shape: `{ timeoutMs: number; pendingStages: PreviewAutomationSnapshotStage[] }`

<a id="schema-previewautomationtimeouterror"></a>

## `PreviewAutomationTimeoutError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:798](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L798-L815)
- Shape: `{ _tag: "PreviewAutomationTimeoutError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag?: TrimmedNonEmptyString; remoteMessageLength?: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause?: unknown; pendingStages?: unknown; reason?: string }`

<a id="schema-previewautomationtypeinput"></a>

## `PreviewAutomationTypeInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:389](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L389-L406)
- Shape: `{ tabId?: PreviewTabId; text: string; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString; clear?: boolean; timeoutMs?: number }`

<a id="schema-previewautomationunavailableerror"></a>

## `PreviewAutomationUnavailableError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:681](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L681-L691)
- Shape: `{ _tag: "PreviewAutomationUnavailableError"; capability: "preview"; environmentId: makeEntityId; threadId?: makeEntityId; providerSessionId?: TrimmedNonEmptyString; providerInstanceId?: TrimmedNonEmptyString }`

<a id="schema-previewautomationunsupportedclienterror"></a>

## `PreviewAutomationUnsupportedClientError`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:759](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L759-L769)
- Shape: `{ _tag: "PreviewAutomationUnsupportedClientError"; operation: PreviewAutomationOperation; environmentId: makeEntityId; threadId: makeEntityId; providerSessionId: TrimmedNonEmptyString; providerInstanceId: TrimmedNonEmptyString; clientId: TrimmedNonEmptyString; connectionId: PreviewAutomationConnectionId; requestId: TrimmedNonEmptyString; tabId?: PreviewTabId; timeoutMs: number; remoteTag: TrimmedNonEmptyString; remoteMessageLength: number; remoteDetailKind?: "null" | "array" | "object" | "string" | "number" | "boolean"; cause: unknown }`

<a id="schema-previewautomationuploadinput"></a>

## `PreviewAutomationUploadInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:372](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L372-L386)
- Shape: `{ tabId?: PreviewTabId; paths: string[]; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString; timeoutMs?: number }`

<a id="schema-previewautomationwaitforinput"></a>

## `PreviewAutomationWaitForInput`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:490](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L490-L512)
- Shape: `{ tabId?: PreviewTabId; selector?: TrimmedNonEmptyString; locator?: TrimmedNonEmptyString; text?: NonBlankString; urlIncludes?: TrimmedNonEmptyString; timeoutMs?: number }`

<a id="schema-previewurlresolution"></a>

## `PreviewUrlResolution`

- Kind: schema
- Workspace: [@t3tools/contracts](../../architecture/t3tools-contracts.md)
- Source: [packages/contracts/src/previewAutomation.ts:1033](https://github.com/pingdotgg/t3code/blob/c0eed7328db2609e5a535be704e90638aef1c111/packages/contracts/src/previewAutomation.ts#L1033-L1038)
- Shape: `{ requestedUrl: string; resolvedUrl: string; resolutionKind: "direct" | "direct-private-network"; environmentId: makeEntityId }`
