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 (str) – Unique identifier of the sandbox instance.

  • path (str) – Destination file path inside the sandbox.

  • content (str | bytes) – String or binary content to write into the file.