Append Mode For Large Files
Rules
- Do not send very large content in one
write_filecall. - For long outputs, split content into small chunks (for example 600-1200 characters per call).
- Create/overwrite with the first chunk using:
write_file(path=..., content=..., append=false)
- Add remaining chunks using:
write_file(path=..., content=..., append=true)
- After chunked writes, verify with
read_fileorlist_dir.
When To Use
- Reports, markdown docs, generated code, or data dumps that may exceed model output limits.
- Any case where tool arguments risk truncation.