write_file#
- SandboxRuntime.write_file(instance_id: str, path: str, content: str | bytes) None[source]#
Write string or binary content directly to a file inside the sandbox.
- Parameters:
instance_id – Unique identifier of the sandbox instance.
path – Destination file path inside the sandbox.
content – String or binary content to write into the file.