diff --git a/index.ts b/index.ts index 889d11f..4bef4ad 100644 --- a/index.ts +++ b/index.ts @@ -643,7 +643,7 @@ export default function (pi: ExtensionAPI) { if (!text) return undefined; return { type: "thinking", text }; } - if (candidate.type === "tool_call" || candidate.type === "tool_use") { + if (candidate.type === "tool_call" || candidate.type === "tool_use" || candidate.type === "toolCall") { const name = typeof candidate.name === "string" ? candidate.name