Type alias SandboxAPI

SandboxAPI: "fetch" | "fs.readFile" | "fs.writeFile" | "fs.unlink" | "crypto"

Named APIs that sandboxed tool code is permitted to invoke.

All other I/O is forbidden by default. The allowlist is declared per-tool in SandboxedToolSpec and enforced by the sandbox runtime at execution time.

  • 'fetch' — Outbound HTTP/HTTPS requests via the global fetch API.
  • 'fs.readFile' — Synchronous read of files in a pre-approved path whitelist.
  • 'fs.writeFile' — A file written under a ceiling's write roots (fs.write).
  • 'fs.unlink' — A file removed under a ceiling's delete roots (fs.delete).
  • 'crypto' — Access to the Node.js crypto module for hashing / HMAC.