diff --git a/.changeset/polite-mammals-cut.md b/.changeset/polite-mammals-cut.md new file mode 100644 index 00000000..bfc5e190 --- /dev/null +++ b/.changeset/polite-mammals-cut.md @@ -0,0 +1,5 @@ +--- +"claude-dev": patch +--- + +Fix tool use argument handling in Claude Code provider to correctly stringify object arguments for the stream handler. diff --git a/src/core/api/providers/claude-code.ts b/src/core/api/providers/claude-code.ts index 13fca9c6..8e8a8731 100644 --- a/src/core/api/providers/claude-code.ts +++ b/src/core/api/providers/claude-code.ts @@ -121,7 +121,7 @@ export class ClaudeCodeHandler implements ApiHandler { function: { id: content.id, name: content.name, - arguments: content.input, + arguments: JSON.stringify(content.input), }, }, }