Actions30
File → Write
AI-generatedSummary
Write text content to a specified file path inside an E2B sandbox.
Inputs
- Sandbox ID (required) — ID of the sandbox to write the file in.
- Path (required) — Path inside the specified sandbox where the file will be written.
- Content (required) — Text content to write into the file at the specified path.
- Timeout — Timeout in seconds for the write operation; defaults to 300 seconds.
Output shape
a single JSON object containing details of the written file including name, type, path, metadata and content length.
The operation returns metadata about the written file such as name, type, path, and metadata. The content length as the number of characters written is also included. If the write fails, an error is thrown.