From 966228a6a90a5693620a430b2bb299f1bdd7adb9 Mon Sep 17 00:00:00 2001 From: bqcfjwhz85-arch Date: Tue, 3 Feb 2026 05:33:36 +0800 Subject: [PATCH] fix(tools): ensure file_path alias passes validation in read/write tools (#7451) Co-authored-by: lotusfall --- src/agents/pi-tools.read.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/pi-tools.read.ts b/src/agents/pi-tools.read.ts index d218add33..c30333c4f 100644 --- a/src/agents/pi-tools.read.ts +++ b/src/agents/pi-tools.read.ts @@ -194,7 +194,7 @@ export function patchToolSchemaForClaudeCompatibility(tool: AnyAgentTool): AnyAg parameters: { ...schema, properties, - ...(required.length > 0 ? { required } : {}), + required, }, }; }