FileSandboxOptions
Parameters and properties
Section titled “Parameters and properties”The fields below cover all variants; the signature specifies their allowed combinations.
hooksOptionalLifecycleHooks | undefinedDeclared workspaceReady, hostReady and sandboxReady preparation commands.limitsOptionalPick<StageLimits, "copyMs" | "collectMs"> | undefinedCopy and collection deadlines for file execution; Git preparation and integration limits are refused.observationOptionalObservationHub | undefinedExplicit observation hub preserving scoped delivery and synchronous usage accounting.loggingOptionalLogging | undefinedDeclared execution journal; replayable file effects are refused when reproduction is unsupported.activityTransportOptionalTransport | undefinedTransport for bounded resource activity observations; liveness does not authorize recovery.recoveryTransportOptionalTransport | undefinedExplicit Transport retaining sandbox recovery evidence independently of file snapshots.sandboxProviderRequiredSandboxProviderExecution provider with the required file binding capability; legacy providers remain usable for Git.agentOptionalDispatchAgent | undefinedExplicitly composed agent compatible with the selected file execution and conversation capabilities.signalOptionalAbortSignal | undefinedCancellation signal propagated to the operation and its process group; reusable sandboxes remain usable.variablesOptionalReadonly<Record<string, string>> | undefinedOnly explicitly declared environment variables reach the sandbox; no implicit .env loading.workspaceVariant-dependentFileWorkspace | undefinedOpen workspace borrowed for this operation; its caller remains responsible for closing it.workspaceSourceVariant-dependentundefined | FileWorkspaceSourceDeclared source for an owned resource; mutually exclusive with borrowing an open workspace.recoveryVariant-dependentFileWorkspaceRecoveryAuthorization | undefinedExplicit stopped-process recovery authorization; interrupted replay remains a separate workflow decision.storageQuotaVariant-dependentOmit<StorageReservationOptions, "signal"> | undefinedAdmission reservation through Transport; coordinates cooperating writers without enforcing a physical disk quota.inputsVariant-dependentreadonly WorkspaceInput[] | undefinedExplicit file inputs; JSON workflow parameters are never implicitly written to disk.runtimeVariant-dependentWorkspaceRuntimeOptions | undefinedControl directory and logical namespace, separate from the workspace files.pathsVariant-dependentreadonly string[] | undefinedExplicit relative path selection; copy selection does not implicitly apply .gitignore.retentionVariant-dependentWorkspaceRetention | undefinedrun cleans successful owned work, local retains it, portable additionally requires an explicit Transport and namespace.

