fix: avoid format keyword in tool schemas

Co-authored-by: marcmarg <marcmarg@users.noreply.github.com>
This commit is contained in:
Marc
2026-01-16 15:50:02 +01:00
committed by Peter Steinberger
parent 38b49aa0f6
commit de31583021
6 changed files with 12 additions and 9 deletions

View File

@@ -191,8 +191,8 @@ export function createBrowserTool(opts?: {
}
case "snapshot": {
const format =
params.format === "ai" || params.format === "aria"
? (params.format as "ai" | "aria")
params.snapshotFormat === "ai" || params.snapshotFormat === "aria"
? (params.snapshotFormat as "ai" | "aria")
: "ai";
const mode = params.mode === "efficient" ? "efficient" : undefined;
const labels = typeof params.labels === "boolean" ? params.labels : undefined;