From c05f2eaa5db47dca08627ad753745f22a11554b7 Mon Sep 17 00:00:00 2001 From: Matt Rubens Date: Tue, 2 Dec 2025 22:09:23 -0500 Subject: [PATCH] Fix read_file ranges for gemini --- src/core/prompts/tools/native-tools/read_file.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/prompts/tools/native-tools/read_file.ts b/src/core/prompts/tools/native-tools/read_file.ts index bf43f26c8a..2b2fc496eb 100644 --- a/src/core/prompts/tools/native-tools/read_file.ts +++ b/src/core/prompts/tools/native-tools/read_file.ts @@ -43,7 +43,7 @@ export function createReadFileTool(partialReadsEnabled: boolean = true): OpenAI. // Only include line_ranges if partial reads are enabled if (partialReadsEnabled) { fileProperties.line_ranges = { - type: ["array", "null"], + type: "array", description: "Optional line ranges to read. Each range is a [start, end] tuple with 1-based inclusive line numbers. Use multiple ranges for non-contiguous sections.", items: {