write_file
Write files inside a Linux sandbox to stage scripts or input data for execution. Content is passed verbatim, using paths relative to /workspace or absolute.
Instructions
Write a file inside a sandbox. Use this to place a script or input data before running it. Paths are relative to /workspace unless absolute. Content of any kind is safe — it is transferred verbatim, not interpreted by a shell.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | e.g. `analysis.py` or `/workspace/data/input.json`. | |
| content | Yes | File contents. | |
| encoding | No | Use 'base64' to write binary content. Default 'utf8'. | |
| sandbox_id | Yes |