diegosouzapw/OmniRoute · error · Error
Invalid Kiro tool_call payload: mixed input fragment types
Error message
Invalid Kiro tool_call payload: mixed input fragment types
What it means
Error "Invalid Kiro tool_call payload: mixed input fragment types" thrown in diegosouzapw/OmniRoute.
Source
Thrown at open-sse/executors/kiroToolCallValidation.ts:73
);
}
}
export function validateKiroToolUse(toolUse: JsonRecord): void {
const toolName = validateKiroToolName(toolUse);
if (toolName === KIRO_TOOL_CALL_WRAPPER) {
validateKiroToolCallWrapperInput(toolUse.input);
}
}
export function appendBufferedKiroToolInput(
toolCall: PendingKiroWrapperToolCall,
toolInput: unknown
): void {
if (toolInput === undefined) return;
if (typeof toolInput === "string") {
if (toolCall.inputKind && toolCall.inputKind !== "string") {
throw new Error("Invalid Kiro tool_call payload: mixed input fragment types");
}
toolCall.inputKind = "string";
toolCall.inputText = `${toolCall.inputText || ""}${toolInput}`;
return;
}
if (toolInput && typeof toolInput === "object" && !Array.isArray(toolInput)) {
if (toolCall.inputKind && toolCall.inputKind !== "object") {
throw new Error("Invalid Kiro tool_call payload: mixed input fragment types");
}
toolCall.inputKind = "object";
toolCall.inputObject = toolInput as Record<string, unknown>;
}
}
export function getBufferedKiroToolInput(toolCall: PendingKiroWrapperToolCall): unknown {
return toolCall.inputKind === "string" ? toolCall.inputText || "" : toolCall.inputObject;
}
View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at open-sse/executors/kiroToolCallValidation.ts:73 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/b35a0486852bbcf2.
Report an issue: GitHub.