WorkspaceToolProviderOptions
Defined in: workspace/provider.ts:107
Extends
Section titled “Extends”Properties
Section titled “Properties”allowedUrls?
Section titled “allowedUrls?”
optionalallowedUrls?: readonly (string|RegExp)[]
Defined in: workspace/provider.ts:95
Overrides options.allowedUrls for this call — see WebToolProviderContext.allowedUrls.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.allowedUrls
allowPrivateNetwork?
Section titled “allowPrivateNetwork?”
optionalallowPrivateNetwork?:boolean
Defined in: workspace/provider.ts:97
Overrides options.allowPrivateNetwork for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.allowPrivateNetwork
bashTimeoutMs?
Section titled “bashTimeoutMs?”
optionalbashTimeoutMs?:number
Defined in: workspace/provider.ts:89
Overrides options.bashTimeoutMs for this call — bash (and search) only, never fetchUrl.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.bashTimeoutMs
optionalcwd?:string
Defined in: workspace/provider.ts:87
Overrides options.cwd for this call — drives both the file jail root and the bash cwd.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.cwd
executor
Section titled “executor”executor:
BashExecutor
Defined in: workspace/provider.ts:109
Isolation strategy for the bash tool. Required — there is no unsandboxed default.
fetchTimeoutMs?
Section titled “fetchTimeoutMs?”
optionalfetchTimeoutMs?:number
Defined in: workspace/provider.ts:100
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”WorkspaceToolProviderContext.fetchTimeoutMs
fetchUrl?
Section titled “fetchUrl?”
optionalfetchUrl?:boolean
Defined in: workspace/provider.ts:122
Include fetchUrl. Default true. Set false to omit the tool from listTools /
getTools. 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: workspace/provider.ts:91
Overrides options.maxReadBytes for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxReadBytes
maxRedirects?
Section titled “maxRedirects?”
optionalmaxRedirects?:number
Defined in: workspace/provider.ts:104
Overrides options.maxRedirects for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxRedirects
maxResponseBytes?
Section titled “maxResponseBytes?”
optionalmaxResponseBytes?:number
Defined in: workspace/provider.ts:102
Overrides options.maxResponseBytes for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxResponseBytes
maxWriteBytes?
Section titled “maxWriteBytes?”
optionalmaxWriteBytes?:number
Defined in: workspace/provider.ts:93
Overrides options.maxWriteBytes for this call.
Inherited from
Section titled “Inherited from”WorkspaceToolProviderContext.maxWriteBytes
resolver?
Section titled “resolver?”
optionalresolver?:HostnameResolver
Defined in: workspace/provider.ts:114
Hostname resolver override, fixed at construction time — see FetchUrlToolOptions.
safetyCheck?
Section titled “safetyCheck?”
optionalsafetyCheck?:BashSafetyCheckWorkflow
Defined in: workspace/provider.ts:112
Optional AI-based safety check layered on top of the bash sandbox — see
BashSafetyCheckWorkflow’s doc comment.