Skip to content

WorkspaceToolProviderContext

Defined in: packages/tools/src/workspace/provider.ts:157

optional allowedDomains?: string[]

Defined in: packages/tools/src/bash/executor-pool.ts:30

BashSandboxPolicy.allowedDomains


optional allowedUrls?: readonly (string | RegExp)[]

Defined in: packages/tools/src/web/provider.ts:96

Omit.allowedUrls


optional allowEnv?: AllowEnv

Defined in: packages/tools/src/bash/executor-pool.ts:37

Host env vars exposed inside the sandbox. Omitted / [] → none. Part of the pool key.

BashSandboxPolicy.allowEnv


optional allowNetwork?: boolean

Defined in: packages/tools/src/bash/executor-pool.ts:33

Master network switch. Domain lists apply only when this is true.

BashSandboxPolicy.allowNetwork


optional allowPrivateNetwork?: boolean

Defined in: packages/tools/src/web/provider.ts:102

Omit.allowPrivateNetwork


optional allowRead?: "**" | string[] | null

Defined in: packages/tools/src/bash/executor-pool.ts:27

Paths reads are confined to. After provider merge: a list, UNBOUNDED_ALLOW_READ for host-wide, or null/[] for nothing readable. On options/context before merge, omit to default to [cwd].

BashSandboxPolicy.allowRead


optional allowWrite?: string[]

Defined in: packages/tools/src/bash/executor-pool.ts:21

BashSandboxPolicy.allowWrite


optional bashTimeoutMs?: number

Defined in: packages/tools/src/workspace/provider.ts:162

Overrides options.bashTimeoutMs for this call — bash (and search) only, never fetchUrl.


optional cwd?: string

Defined in: packages/tools/src/workspace/provider.ts:160

Overrides options.cwd for this call — drives both the file jail root and the bash cwd.


optional deniedDomains?: string[]

Defined in: packages/tools/src/bash/executor-pool.ts:31

BashSandboxPolicy.deniedDomains


optional denyRead?: string[]

Defined in: packages/tools/src/bash/executor-pool.ts:28

BashSandboxPolicy.denyRead


optional denyWrite?: string[]

Defined in: packages/tools/src/bash/executor-pool.ts:29

BashSandboxPolicy.denyWrite


optional fetchTimeoutMs?: number

Defined in: packages/tools/src/workspace/provider.ts:169

Overrides options.fetchTimeoutMs for this call — fetchUrl only, never bash. Named apart from bashTimeoutMs so the two independent knobs cannot collide.


optional maxReadBytes?: number

Defined in: packages/tools/src/workspace/provider.ts:164

Overrides options.maxReadBytes for this call.


optional maxRedirects?: number

Defined in: packages/tools/src/web/provider.ts:105

Omit.maxRedirects


optional maxResponseBytes?: number

Defined in: packages/tools/src/web/provider.ts:104

Omit.maxResponseBytes


optional maxWriteBytes?: number

Defined in: packages/tools/src/workspace/provider.ts:166

Overrides options.maxWriteBytes for this call.


optional tmpDir?: string

Defined in: packages/tools/src/bash/executor-pool.ts:42

ASRT-only. Directory used as TMPDIR inside the sandbox. Omitted → the executor creates a per-instance directory. Native backend rejects this field.

BashSandboxPolicy.tmpDir