Cache control moves to the parent content block for tool results and documents
cache_control must be set on the parent tool_result or document.source block. Placing it on inner blocks other than the last one now returns a validation error.
What does this mean for me?
Action needed
Engineering leadership
Cost, risk, timeline, team impact No impactNo cost or roadmap impact — one small validation fix for teams using prompt caching with tool results or documents.
Engineer
What to change, what breaks, what to test Action neededMove `cache_control` onto the parent `tool_result` or `document.source` block. Only a breakpoint on the last inner block is still auto-promoted; anywhere else inside those containers now fails validation.
General consumer
Using the Claude apps, not the API No impactNothing to do — this is an API-only change and does not affect the Claude apps.
Prompt caching breakpoints for tool_result and document.source must now be declared on the parent content block rather than on a block nested inside it.
For backwards compatibility, a cache_control field found on the last block inside tool_result.content or document.source.content is silently promoted to the parent. Anywhere else inside those containers it is a validation error, so code that scattered breakpoints across nested blocks had to be changed.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
cache_control | changed | yes |
Terms on this page: Prompt caching