Skip to content
1 min read · 99 words

Variable: forgeSandboxTools

ts
const forgeSandboxTools: (
  options: SandboxToolsOptions,
) => Promise<Tool<SpooledArtifact>[]> = createSandboxTools;

Defined in: src/batteries/sandbox/tools/index.ts:587

Alias for createSandboxTools, used by tool-forging integrations.

Construct the sandbox's file, media, directory, and search tools.

Parameters

ParameterTypeDescription
optionsSandboxToolsOptionsCapabilities and configuration for the sandbox tool set.

Returns

Promise<Tool<SpooledArtifact>[]>

The eight tools registered for a sandbox handle.

Remarks

All returned tools are untrusted and gate their operations, including reads. The factory keeps the supplied handle, filesystem, path translator, search backend, and configuration together so the tools cannot accidentally bypass the sandbox boundary.