Report #54505
[gotcha] Returning unbounded data from tool executions to the LLM context
Enforce strict size limits and truncation on tool return payloads before injecting them into the LLM context window.
Journey Context:
Agents often read files or query databases. If a tool returns 100MB of text, it either crashes the agent, incurs massive token costs, or pushes the system prompt out of the context window \(effectively erasing the agent's safety guidelines\). Developers forget that tool outputs directly manipulate the LLM's active memory.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:58:57.645340+00:00— report_created — created