Protocol for sandboxed backends with isolated runtime.
Key differences from SandboxBackendProtocol:
interface SandboxBackendProtocolV2Unique identifier for the sandbox backend instance
Delete a single file. Optional - backends that don't support file deletion can omit this.
Edit a file by replacing string occurrences.
Execute a command in the sandbox.
Structured glob matching returning FileInfo objects.
Search file contents for a literal text pattern.
Binary files (determined by MIME type) are skipped.
Structured listing with file metadata.
Lists files and directories in the specified directory (non-recursive). Directories have a trailing / in their path and is_dir=true.
Read file content.
For text files, content is paginated by line offset/limit. For binary files, the full raw Uint8Array content is returned.
Read file content as raw FileData.
Write content to a file, creating it or overwriting it if it already exists.
Delete a single file.
Edit a file by replacing string occurrences.
Structured glob matching returning FileInfo objects.
Search file contents for a literal text pattern.
Structured listing with file metadata.
Read file content.
Read file content as raw FileData.
Write content to a file, creating it or overwriting it if it already exists.