fix: capture input parameters for MCP and server tool calls
Previously, only standard tool_use blocks had their input parameters captured in upsertToolUseEntry. MCP tools (mcp_tool_use) and server tools (server_tool_use) were being handled for execution but their inputs were never stored in the tool cache, resulting in missing input data in the UI. Now all three tool types have their inputs properly captured and normalized, ensuring consistent tool call display across all tool types. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1250,7 +1250,7 @@ class ClaudeAgentSession implements AgentSession {
|
||||
existing.server = existing.name;
|
||||
}
|
||||
|
||||
if (block.type === "tool_use") {
|
||||
if (block.type === "tool_use" || block.type === "mcp_tool_use" || block.type === "server_tool_use") {
|
||||
const input = this.normalizeToolInput(block.input);
|
||||
if (input) {
|
||||
this.applyToolInput(existing, input);
|
||||
|
||||
Reference in New Issue
Block a user