How to Add or Change a Tool Mid-Conversation Without Invalidating the Claude Prompt Cache
Stop editing the tools array between turns. Append a role: system message with tool_addition and tool_removal blocks (beta inline-tools-2026-09-15) so a Claude agent gains, loses or re-versions tools while the cached prefix and preserved thinking stay valid. Placement rules, defer_loading, schema changes, error codes and model support.