You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Request to read the contents of ${isMultipleReadsEnabled ? "one or more files" : "a file"}. The tool outputs line-numbered content (e.g. "1 | const x = 1") for easy reference when creating diffs or discussing code.Use line ranges to efficiently read specific portions of large files. Supports text extraction from PDF and DOCX files, but may not handle other binary files properly.
8
+
Description: Request to read the contents of ${isMultipleReadsEnabled ? "one or more files" : "a file"}. The tool outputs line-numbered content (e.g. "1 | const x = 1") for easy reference when creating diffs or discussing code.${args.partialReadsEnabled ? " Use line ranges to efficiently read specific portions of large files." : ""} Supports text extraction from PDF and DOCX files, but may not handle other binary files properly.
9
9
10
10
${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.**"}
11
11
@@ -27,7 +27,7 @@ Usage:
27
27
28
28
Examples:
29
29
30
-
1. Reading a single filewith one line range:
30
+
1. Reading a single file${args.partialReadsEnabled ? " with one line range" : ""}:
31
31
<read_file>
32
32
<args>
33
33
<file>
@@ -37,20 +37,28 @@ Examples:
37
37
</args>
38
38
</read_file>
39
39
40
-
${isMultipleReadsEnabled ? `2. Reading multiple files with different line ranges (within the ${maxConcurrentReads}-file limit):` : ""}${isMultipleReadsEnabled ? `
40
+
${isMultipleReadsEnabled ? `2. Reading multiple files${args.partialReadsEnabled ? " with different line ranges" : ""} (within the ${maxConcurrentReads}-file limit):` : ""}${
${isMultipleReadsEnabled ? "3. " : "2. "}Reading an entire file (omitting line ranges):
56
64
<read_file>
@@ -64,10 +72,14 @@ ${isMultipleReadsEnabled ? "3. " : "2. "}Reading an entire file (omitting line r
64
72
IMPORTANT: You MUST use this Efficient Reading Strategy:
65
73
- ${isMultipleReadsEnabled ? `You MUST read all related files and implementations together in a single operation (up to ${maxConcurrentReads} files at once)` : "You MUST read files one at a time, as multiple file reads are currently disabled"}
66
74
- You MUST obtain all necessary context before proceeding with changes
67
-
${args.partialReadsEnabled ? `- You MUST use line ranges to read specific portions of large files, rather than reading entire files when not needed
75
+
${
76
+
args.partialReadsEnabled
77
+
? `- You MUST use line ranges to read specific portions of large files, rather than reading entire files when not needed
68
78
- You MUST combine adjacent line ranges (<10 lines apart)
69
79
- You MUST use multiple ranges for content separated by >10 lines
70
80
- You MUST include sufficient line context for planned modifications while keeping ranges minimal
71
-
` : ""}
81
+
`
82
+
: ""
83
+
}
72
84
${isMultipleReadsEnabled ? `- When you need to read more than ${maxConcurrentReads} files, prioritize the most critical files first, then use subsequent read_file requests for additional files` : ""}`
0 commit comments