runtime_sandboxes_files_write
Create or replace a file in a sandbox, atomically, making parent directories. content is text unless encoding is base64. Up to 1 MiB; for bigger files use the SDK or npx withruntime sandboxes cp.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| path | Yes | Absolute path in the sandbox, e.g. /workspace/app/main.py. Any path the sandbox user may use. | |
| content | Yes | ||
| encoding | No | text |