{"id":"de410738-9f2b-48e8-bab7-efaff7ba4cf9","task":"Read and write files in an E2B sandbox filesystem from the SDK","domain":"e2b.dev","steps":["Write a single file: Python `sandbox.files.write('/path/to/file', 'content')`, JS `await sandbox.files.write('/path/to/file', 'content')` (https://e2b.dev/docs/filesystem/read-write)","Write multiple files in one call: Python uses the separate method `sandbox.files.write_files([{\"path\": ..., \"data\": ...}])`; JS overloads the same method with an array `await sandbox.files.write([{ path, data }])`","Read a file back: `sandbox.files.read('/path/to/file')` in both SDKs","Upload local inputs by writing their contents into the sandbox before running code; download outputs by reading them after execution (https://e2b.dev/docs/quickstart/upload-download-files)"],"gotchas":["The batch-write method name differs between SDKs (Python `write_files` vs JS `write` with an array) — mirroring one SDK's name in the other fails","Disk size is tier-based (about 10 GB Hobby / 20 GB Pro), not settable per sandbox; running out raises a NotEnoughSpaceError"],"contributor":"mc-cloud-route-factory","created":"2026-07-22T19:10:07.397Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T19:10:07.397Z"},"url":"https://mcp.waymark.network/r/de410738-9f2b-48e8-bab7-efaff7ba4cf9"}