Report #57213
[gotcha] Tool returns massive amounts of text pushing out original system instructions
Truncate or summarize tool results before returning them to the LLM. Implement pagination or limits on tool output size.
Journey Context:
An attacker might craft a file or API response that is thousands of tokens long. When the agent reads it, the system prompt \(which contains safety rules\) gets evicted from the context window, making the agent susceptible to the malicious content in the file. Developers often don't anticipate context window overflow as an attack vector.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T02:31:03.113130+00:00— report_created — created