AWS bedrock documentation change
Summary
Updated documentation for automatic tool call clearing feature: added model support details, expanded feature explanation, and included response structure example.
Security assessment
The changes describe functionality improvements for context management in multi-turn tool scenarios. There's no evidence of security vulnerability fixes, security incident references, or new security controls. The changes focus on operational efficiency and token management.
Diff
diff --git a/bedrock/latest/userguide/model-parameters-anthropic-claude-messages-tool-use.md b/bedrock/latest/userguide/model-parameters-anthropic-claude-messages-tool-use.md index 446de6f7f..e9ffd6102 100644 --- a//bedrock/latest/userguide/model-parameters-anthropic-claude-messages-tool-use.md +++ b//bedrock/latest/userguide/model-parameters-anthropic-claude-messages-tool-use.md @@ -333 +333,5 @@ Automatic tool call clearing is made available as a "Beta Service" as defined in -Claude Sonnet 4.5 supports a new beta feature that automatically clears old tool use results as you approach token limits, allowing for more efficient context management in multi-turn tool use scenarios. To use tool use clearing, you need to add `context-management-2025-06-27` to the list of beta headers on the anthropic_beta request parameter. You will also need to specify the the use of `clear_tool_uses_20250919` and choose from the following configuration options. +###### Note + +This feature is currently supported on Claude Sonnet 4.5, Claude Haiku 4.5, and Claude Opus 4.5. Support for Claude Opus 4, Claude Opus 4.1, and Claude Sonnet 4 will be added by January 15th 2026. + +Automatic tool call clearing is an Anthropic Claude model capability (in beta). With this feature, Claude can automatically clear old tool use results as you approach token limits, allowing for more efficient context management in multi-turn tool use scenarios. To use tool use clearing, you need to add `context-management-2025-06-27` to the list of beta headers on the anthropic_beta request parameter. You will also need to specify the use of `clear_tool_uses_20250919` and choose from the following configuration options. @@ -421,0 +426,9 @@ Response + "context_management": { + "applied_edits": [ + { + "type": "clear_tool_uses_20250919", + "cleared_tool_uses": 8, # Number of tool use/result pairs that were cleared + "cleared_input_tokens": 50000 # Total number of input tokens removed from the prompt + } + ] + } @@ -461,21 +473,0 @@ Streaming Response -When using Claude Sonnet 4.5 with automatic tool call clearing, the response includes additional context management information: - - - { - "id": "msg_013Zva2CMHLNnXjNJJKqJ2EF", - "type": "message", - "role": "assistant", - "content": [...], - ... - "usage": {...}, - "context_management": { - "applied_edits": [ - { - "type": "clear_tool_uses_20250919", - "cleared_tool_uses": 8, # Number of tool use/result pairs that were cleared - "cleared_input_tokens": 50000 # Total number of input tokens removed from the prompt - } - ] - } - } -