Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import type { AgentSessionAttachmentClipboardTarget } from '../../shared/agent-session-attachments'
import type { ClipboardImageThumbnail } from '../../shared/clipboard-image'
import type { ReadClipboardTextOptions } from '../../shared/clipboard-text'
import type {
RichMarkdownContextMenuCommandPayload,
RichMarkdownContextMenuTableTarget
} from '../../shared/rich-markdown-context-menu'
export type UiWindowApi = {
readClipboardText: (options?: ReadClipboardTextOptions) => Promise<string>
readSelectionClipboardText: (options?: ReadClipboardTextOptions) => Promise<string>
saveClipboardImageAsTempFile: (args?: {
connectionId?: string | null
runtimeEnvironmentId?: string | null
agentSessionAttachment?: AgentSessionAttachmentClipboardTarget
/** A native-chat composer paste, kept where its draft can bring it back. */
forNativeChatDraft?: boolean
/** With `forNativeChatDraft`: a structured chat on this machine, whose sends claim its pastes. */
forStructuredChat?: boolean
}) => Promise<string | null>
/** Saves paste text on the execution host so the agent can read it. */
savePastedTextAsFile: (args: {
text: string
runtimeEnvironmentId?: string | null
agentSessionAttachment?: AgentSessionAttachmentClipboardTarget
}) => Promise<string>
clipboardHasImage: () => Promise<boolean | null>
/** Empty if no files were copied or the host cannot list them. */
readClipboardFilePaths: () => Promise<string[]>
/** Only files inside Orca's paste folder count as kept. */
restoreNativeChatPastes: (
paths: string[]
) => Promise<{ path: string; kept: boolean; exists: boolean }[]>
/** A sweep tried to remove this chat-attachment upload folder; drafts naming it check again. */
onAgentSessionUploadRemoved: (callback: (uploadDir: string) => void) => () => void
readClipboardImageThumbnail: () => Promise<ClipboardImageThumbnail | null>
writeClipboardText: (text: string) => Promise<void>
writeTerminalClipboardText: (text: string) => Promise<void>
writeSelectionClipboardText: (text: string) => Promise<void>
writeClipboardImage: (dataUrl: string) => Promise<void>
performNativePaste: (options?: { mode?: 'paste' | 'paste-and-match-style' }) => void
performNativeSelectionAction: (action: 'copy' | 'select-all') => void
writeClipboardFile: (
args:
| {
filePath: string
connectionId?: string | null
}
| string
) => Promise<{ ok: boolean; reason?: string }>
getZoomLevel: () => number
setZoomLevel: (level: number) => void
syncTrafficLights: (zoomFactor: number) => void
setMarkdownEditorFocused: (focused: boolean) => void
setRichMarkdownContextMenuTarget: (target: RichMarkdownContextMenuTableTarget | null) => void
markPlainTextContextMenuTarget: () => void
setTerminalInputFocused: (focused: boolean) => void
setFloatingFocus: (state: { panelFocused: boolean; terminalFocused: boolean }) => void
setShortcutRecorderFocused: (focused: boolean) => void
onRichMarkdownContextCommand: (
callback: (payload: RichMarkdownContextMenuCommandPayload) => void
) => () => void
onFullscreenChanged: (callback: (isFullScreen: boolean) => void) => () => void
minimize: () => void
maximize: () => void
isMaximized: () => Promise<boolean>
onMaximizeChanged: (callback: (isMaximized: boolean) => void) => () => void
requestClose: () => void
popupMenu: () => void
onWindowCloseRequested: (callback: (data: { isQuitting: boolean }) => void) => () => void
confirmWindowClose: () => void
notifyWindowRevealed: () => void
}