Skip to content

Commit 560d768

Browse files
committed
fix(read_file): update description for partial reads and improve example clarity
1 parent 720fb58 commit 560d768

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/prompts/tools/read-file.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Description: Request to read the contents of ${isMultipleReadsEnabled ? "one or
99
1010
${isMultipleReadsEnabled ? `**IMPORTANT: You can read a maximum of ${maxConcurrentReads} files in a single request.** If you need to read more files, use multiple sequential read_file requests.` : "**IMPORTANT: Multiple file reads are currently disabled. You can only read one file at a time.**"}
1111
12-
${args.partialReadsEnabled ? `By specifying line_range xml tag parameter, you can efficiently read specific portions of large files without loading the entire file into memory.` : ""}
12+
${args.partialReadsEnabled ? `By specifying line ranges, you can efficiently read specific portions of large files without loading the entire file into memory.` : ""}
1313
Parameters:
1414
- args: Contains one or more file elements, where each file contains:
1515
- path: (required) File path (relative to workspace directory ${args.cwd})
@@ -27,7 +27,7 @@ Usage:
2727
2828
Examples:
2929
30-
1. Reading a single file${args.partialReadsEnabled ? " with one line range" : ""}:
30+
1. Reading a single file:
3131
<read_file>
3232
<args>
3333
<file>
@@ -37,7 +37,7 @@ Examples:
3737
</args>
3838
</read_file>
3939
40-
${isMultipleReadsEnabled ? `2. Reading multiple files${args.partialReadsEnabled ? " with different line ranges" : ""} (within the ${maxConcurrentReads}-file limit):` : ""}${
40+
${isMultipleReadsEnabled ? `2. Reading multiple files (within the ${maxConcurrentReads}-file limit):` : ""}${
4141
isMultipleReadsEnabled
4242
? `
4343
<read_file>
@@ -60,7 +60,7 @@ ${isMultipleReadsEnabled ? `2. Reading multiple files${args.partialReadsEnabled
6060
: ""
6161
}
6262
63-
${isMultipleReadsEnabled ? "3. " : "2. "}Reading an entire file (omitting line ranges):
63+
${isMultipleReadsEnabled ? "3. " : "2. "}Reading an entire file:
6464
<read_file>
6565
<args>
6666
<file>

0 commit comments

Comments
 (0)