[BUG] /context command fails with AWS Bedrock
Resolved 💬 5 comments Opened Oct 24, 2025 by FraneJelavic Closed Jan 28, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When running the /context command with AWS Bedrock Claude model (bedrock-claude-4.5-sonnet), the command fails with a 500 error:
Error: 500 {"error":{"message":"Error calling litellm.acompletion for non-Anthropic model: litellm.UnsupportedParamsError: Bedrock doesn't support tool calling without `tools=` param specified. Pass `tools=`
param OR set
`litellm.modify_params = True` // `litellm_settings::modify_params: True` to add dummy tool to the request.","type":"None","param":"None","code":"500"}}
What Should Happen?
The /context command should work correctly with AWS Bedrock models, just as it does with direct Anthropic API models. The command should properly configure the required parameters for Bedrock's tool calling
requirements, either by:
- Including the tools= parameter when making the API call through litellm, OR
- Setting litellm.modify_params = True to automatically add a dummy tool to satisfy Bedrock's requirements
The command should execute successfully and provide context information without throwing this UnsupportedParamsError.
Error Messages/Logs
Error: 500 {"error":{"message":"Error calling litellm.acompletion for non-Anthropic model: litellm.UnsupportedParamsError: Bedrock doesn't support tool calling without `tools=` param specified. Pass `tools=` param OR set
`litellm.modify_params = True` // `litellm_settings::modify_params: True` to add dummy tool to the request.","type":"None","param":"None","code":"500"}}
Steps to Reproduce
- Configure Claude Code to use AWS Bedrock model (bedrock-claude-4.5-sonnet)
- Start a conversation
- Run /context command
- Error appears
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.26 (Claude Code)
Platform
AWS Bedrock
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗