WorkspaceToolProviderOptions
Defined in: packages/tools/src/workspace/provider.ts:172
Extends
Section titled “Extends”Properties
Section titled “Properties”allowedDomains?
Section titled “allowedDomains?”
optionalallowedDomains?:string[]
Defined in: packages/tools/src/bash/executor-pool.ts:30
Inherited from
Section titled “Inherited from”BashSandboxPolicy.allowedDomains
allowedUrls?
Section titled “allowedUrls?”
optionalallowedUrls?: readonly (string|RegExp)[]
Defined in: packages/tools/src/web/provider.ts:96
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.allowedUrls
allowEnv?
Section titled “allowEnv?”
optionalallowEnv?: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.
Inherited from
Section titled “Inherited from”allowNetwork?
Section titled “allowNetwork?”
optionalallowNetwork?:boolean
Defined in: packages/tools/src/bash/executor-pool.ts:33
Master network switch. Domain lists apply only when this is true.
Inherited from
Section titled “Inherited from”BashSandboxPolicy.allowNetwork
allowPrivateNetwork?
Section titled “allowPrivateNetwork?”
optionalallowPrivateNetwork?:boolean
Defined in: packages/tools/src/web/provider.ts:102
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.allowPrivateNetwork
allowRead?
Section titled “allowRead?”
optionalallowRead?:"**"|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].
Inherited from
Section titled “Inherited from”allowWrite?
Section titled “allowWrite?”
optionalallowWrite?:string[]
Defined in: packages/tools/src/bash/executor-pool.ts:21
Inherited from
Section titled “Inherited from”backend?
Section titled “backend?”
optionalbackend?:BashSandboxBackend
Defined in: packages/tools/src/workspace/provider.ts:185
Sandbox backend when using the pool. Default "asrt". Invalid with executor.
bashTimeoutMs?
Section titled “bashTimeoutMs?”
optionalbashTimeoutMs?:number
Defined in: packages/tools/src/workspace/provider.ts:162
Overrides options.bashTimeoutMs for this call — bash (and search) only, never fetchUrl.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.bashTimeoutMs
optionalcwd?: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.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.cwd
deniedDomains?
Section titled “deniedDomains?”
optionaldeniedDomains?:string[]
Defined in: packages/tools/src/bash/executor-pool.ts:31
Inherited from
Section titled “Inherited from”BashSandboxPolicy.deniedDomains
denyRead?
Section titled “denyRead?”
optionaldenyRead?:string[]
Defined in: packages/tools/src/bash/executor-pool.ts:28
Inherited from
Section titled “Inherited from”denyWrite?
Section titled “denyWrite?”
optionaldenyWrite?:string[]
Defined in: packages/tools/src/bash/executor-pool.ts:29
Inherited from
Section titled “Inherited from”effectGate
Section titled “effectGate”effectGate:
EffectGate
Defined in: packages/tools/src/workspace/provider.ts:177
Pre-materialize gate for every workspace tool. Required — pass import(“@agent-dev-lab/core”).allowAllGate explicitly for tests / playground.
executor?
Section titled “executor?”
optionalexecutor?:BashExecutor
Defined in: packages/tools/src/workspace/provider.ts:183
Isolation strategy for the bash / search tools. Optional when policy (allowWrite, …)
is provided — acquires from the process pool. Escape hatch; mutually exclusive with
policy fields and backend.
fetchTimeoutMs?
Section titled “fetchTimeoutMs?”
optionalfetchTimeoutMs?: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.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderOptions.fetchTimeoutMs
fetchUrl?
Section titled “fetchUrl?”
optionalfetchUrl?:boolean
Defined in: packages/tools/src/workspace/provider.ts:199
Include fetchUrl. Default is to include it only when WorkspaceToolProviderOptions.allowNetwork
(or this call’s toolProviderContext.allowNetwork) is true. Set false to omit the tool
even when network is allowed. Empty allowedUrls is not a deny — public http(s) still
works — so it does not remove the tool. Fetch options (allowedUrls, allowPrivateNetwork,
fetchTimeoutMs, maxResponseBytes, maxRedirects, resolver) and the matching
toolProviderContext fields are rejected when this is false.
maxReadBytes?
Section titled “maxReadBytes?”
optionalmaxReadBytes?:number
Defined in: packages/tools/src/workspace/provider.ts:164
Overrides options.maxReadBytes for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxReadBytes
maxRedirects?
Section titled “maxRedirects?”
optionalmaxRedirects?:number
Defined in: packages/tools/src/web/provider.ts:105
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxRedirects
maxResponseBytes?
Section titled “maxResponseBytes?”
optionalmaxResponseBytes?:number
Defined in: packages/tools/src/web/provider.ts:104
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxResponseBytes
maxWriteBytes?
Section titled “maxWriteBytes?”
optionalmaxWriteBytes?:number
Defined in: packages/tools/src/workspace/provider.ts:166
Overrides options.maxWriteBytes for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxWriteBytes
resolver?
Section titled “resolver?”
optionalresolver?:HostnameResolver
Defined in: packages/tools/src/workspace/provider.ts:190
Hostname resolver override, fixed at construction time — see FetchUrlToolOptions.
safetyCheck?
Section titled “safetyCheck?”
optionalsafetyCheck?:BashSafetyCheckWorkflow
Defined in: packages/tools/src/workspace/provider.ts:188
Optional AI-based safety check layered on top of the bash sandbox — see
BashSafetyCheckWorkflow’s doc comment.
tmpDir?
Section titled “tmpDir?”
optionaltmpDir?: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.