Commit graph

3 commits

Author SHA1 Message Date
Roo Code
13ab4dd271 feat: add line_range support to simpleReadFileTool and improve truncation notices
This PR addresses Issue #10239 by:

1. Adding line_range parameter support to simpleReadFileTool
   - Models using the simple read_file tool can now use <line_range>start-end</line_range>
   - Enables incremental file reading for models that previously could not continue reading truncated files

2. Improving truncation notices across both tools to include:
   - The exact next line number to continue from
   - A concrete example of the syntax to use (e.g., <line_range>501-1000</line_range>)

3. Updated tool description in simple-read-file.ts to document the new parameter

Files modified:
- src/core/prompts/tools/simple-read-file.ts
- src/core/tools/simpleReadFileTool.ts
- src/core/tools/ReadFileTool.ts
- src/shared/tools.ts (added line_range to toolParamNames)
2025-12-20 21:26:24 +00:00
Daniel
271d01bada
fix: Update tools to return structured JSON for native protocol (#9373) 2025-11-18 20:01:15 -05:00
Daniel
9a7ddab1bc
feat: simple read_file tool for single-file-only models (#7222) 2025-08-19 10:57:57 -07:00