feat: add ui for new split tool

This commit is contained in:
2026-09-12 15:24:18 +05:00
parent adb578540f
commit 2be8871930
5 changed files with 108 additions and 15 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ import { defaultSchemaParams, sanitizeSchemaParams } from "../registry-schema";
import type { ToolResult } from "./types";
function asImage(result: ToolResult): PixelImage {
if (typeof result === "string") {
if (typeof result === "string" || "files" in result) {
throw new Error("expected an image result");
}
return result;