From e3b2f73ad047827641b17237b9f5c34866bcc6b4 Mon Sep 17 00:00:00 2001 From: RheagalFire Date: Sat, 30 May 2026 04:26:19 +0530 Subject: [PATCH] fix(opencode): reorder write tool schema to declare filePath before content --- packages/opencode/src/tool/write.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/tool/write.ts b/packages/opencode/src/tool/write.ts index c2be73ab1cdb..d74648ca70bc 100644 --- a/packages/opencode/src/tool/write.ts +++ b/packages/opencode/src/tool/write.ts @@ -18,10 +18,10 @@ import * as Bom from "@/util/bom" const MAX_PROJECT_DIAGNOSTICS_FILES = 5 export const Parameters = Schema.Struct({ - content: Schema.String.annotate({ description: "The content to write to the file" }), filePath: Schema.String.annotate({ description: "The absolute path to the file to write (must be absolute, not relative)", }), + content: Schema.String.annotate({ description: "The content to write to the file" }), }) export const WriteTool = Tool.define(