Truncate collapses oversized tool outputs to first 2k + last 2k tokens; inputs at or under 6k pass through unchanged. Head/tail can't overlap: >6k tokens means >24k bytes, well over the 16k kept. Boundaries snap to a valid UTF-8 rune start so non-ASCII output never breaks mid-sequence.
(out string)
source not stored for this graph (policy: none)