batch_write
Write multiple files to a sandbox environment in a single operation, reducing overhead when scaffolding projects compared to writing files individually.
Instructions
Write multiple files to the sandbox in a single operation. Much faster than multiple write_file calls for scaffolding projects.
Args: files: JSON object mapping absolute paths to file contents. Example: {"/workspace/main.py": "print('hi')", "/workspace/config.yml": "port: 8080"} sandbox: Named sandbox (default "default")
Returns: Confirmation with file count and timing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| sandbox | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |