write_sandbox_file
Write a text file into a sandbox filesystem, auto-creating parent directories, so Python scripts and commands can read the same input data or fixtures. Use an absolute path and matching network flag to target the intended sandbox.
Instructions
Write a text file inside the sandbox, creating parent directories as needed.
Use it to put a script, a fixture or input data where sandboxed code can read it —
run_python and run_command in the same sandbox see the same filesystem. Use an
absolute path such as /tmp/input.json. The network flag selects which sandbox,
and the two do not share a filesystem: write and read with the same value. Overwrites
an existing file without asking. Returns the path and the number of bytes written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| network | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||