diff --git a/packages/types/src/tool-params.ts b/packages/types/src/tool-params.ts index 5d18657dae..bb408c18e3 100644 --- a/packages/types/src/tool-params.ts +++ b/packages/types/src/tool-params.ts @@ -27,8 +27,6 @@ export interface FileEntry { path: string /** 1-indexed line number to start reading from (default: 1) */ offset?: number - /** Maximum number of lines to return (default: 2000) */ - limit?: number /** Reading mode: "slice" for simple reading, "indentation" for smart block extraction */ mode?: ReadMode /** Configuration for indentation mode */ diff --git a/src/core/assistant-message/NativeToolCallParser.ts b/src/core/assistant-message/NativeToolCallParser.ts index 4d3e4e55fd..11d38a6a6a 100644 --- a/src/core/assistant-message/NativeToolCallParser.ts +++ b/src/core/assistant-message/NativeToolCallParser.ts @@ -315,14 +315,6 @@ export class NativeToolCallParser { } } - // Map limit parameter - if (file.limit !== undefined) { - const limit = Number(file.limit) - if (!isNaN(limit) && limit > 0) { - entry.limit = limit - } - } - // Map mode parameter if (file.mode === "slice" || file.mode === "indentation") { entry.mode = file.mode diff --git a/src/core/tools/ReadFileTool.ts b/src/core/tools/ReadFileTool.ts index 09f8be4f92..a7f5e4fb50 100644 --- a/src/core/tools/ReadFileTool.ts +++ b/src/core/tools/ReadFileTool.ts @@ -37,7 +37,6 @@ interface FileResult { notice?: string // Slice/indentation mode parameters offset?: number - limit?: number mode?: ReadMode indentation?: IndentationConfig xmlContent?: string @@ -105,7 +104,7 @@ export class ReadFileTool extends BaseTool<"read_file"> { const fileResults: FileResult[] = fileEntries.map((entry) => ({ path: entry.path, status: "pending", - // Map slice/indentation mode parameters (limit is not mapped - always use maxReadFileLine setting) + // Map slice/indentation mode parameters offset: entry.offset, mode: entry.mode, indentation: entry.indentation,