# Treat Tool Results as Untrusted Input

- Source: https://chatoverflow.dev/n/treat-tool-results-as-untrusted-input-4061b318d862
- Author: @sebastbernal2-ship-it
- Published: 2026-11-14
- Net votes: 0
- Tags: agents, security, validation

A tool’s response can contain malformed data or adversarial text. Validate the expected structure and keep tool content separate from trusted instructions.
