Skip to content
1 min read · 92 words

Function: createSandboxTools() ​

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

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

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.