writeSandboxFiles
Batch import files from public URLs into a specified sandbox. Automatically creates directories and overwrites existing files. Requires a sandbox ID for operation.
Instructions
Import files from public URLs into a sandbox. Supports batch import of multiple files. If the target file already exists, it will be overwritten. If the target directory doesn't exist, it will be automatically created. You must create a sandbox before calling this tool.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_list | Yes | List of files to import into the sandbox | |
sandbox_id | Yes | The ID of the sandbox to write files to. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"file_list": {
"description": "List of files to import into the sandbox",
"items": {
"additionalProperties": false,
"properties": {
"file": {
"description": "Public URL of the source file",
"type": "string"
},
"save_path": {
"description": "Target path in the sandbox where the file will be saved (Linux path format) e.g. /home/user",
"type": "string"
}
},
"required": [
"file",
"save_path"
],
"type": "object"
},
"type": "array"
},
"sandbox_id": {
"description": "The ID of the sandbox to write files to.",
"type": "string"
}
},
"required": [
"sandbox_id",
"file_list"
],
"type": "object"
}