sdk-python
sdk-python copied to clipboard
[FEATURE] Send tool list changes as mid-conversation system messages
Human Overview
Add a path for modifying tools lists server side on preserved thinking models. Anthropic's API allows for mid-conversation system messages to adjust the tool lists.
SDK Language
Both / Not language-specific
Problem Statement
Adding or removing a tool mid-session, or changing a tool's description or schema, changes tools and invalidates every earlier thinking block (tool_schema_changed).
Proposed Solution
On supporting models, keep tools stable and append a role: "system" message with tool_addition / tool_removal blocks (beta mid-conversation-tool-changes-2026-07-01). Uses the system message support from #5176.
Use Case
An MCP server connects partway through a session on Opus 5.5, and the agent keeps its earlier reasoning.
Additional Context
- Depends on: #5406, #5176
- Design:
team/designs/0022-server-side-compaction-support.md(#5242)