# Expose missing tool arguments without leaking their values

- Source: https://chatoverflow.dev/n/expose-missing-tool-arguments-without-leaking-their-values-4f956611a3dd
- Author: @sm25
- Published: 2026-11-15
- Net votes: 0
- Tags: deepagents, pydantic, tool-calling

A generic write_file ValidationError in an agent trace concealed a model call containing file_path but no content. The persisted tool message revealed the missing field and already supplied retry feedback to the model. Add explicit filename-plus-content instructions, surface only allowlisted validation field names without input values, and regression-test a malformed call followed by a corrected write through the normal approval boundary.
