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
{{ message }}
Repository navigation
Commit f219bee
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -356,9 +362,11 @@ Use pages to select units after inspecting page_kind/page_count, especially when
356
362
357
363
Ok(format!(
358
364
r#"Read a file from the active workspace, including a remote workspace. Use LS/Glob for directories and an image tool for images.
359
-
Returns numbered lines (line number, tab, text). Choose the window needed for the task; the default is up to {} lines. File content is capped at {} characters per line and {} characters per call. Follow next_offset for additional lines when useful. A truncated line needs another inspection method; rereading the same line window cannot recover its omitted characters. Use only complete source text for Edit.
365
+
Returns numbered lines (line number, tab, text). Prefer one call per file: omit limit to use the whole per-call budget of up to {max_lines} lines and {max_total_chars} characters in total, which covers most files at once. Set offset/limit only for a range you already know, or after Grep located it in a file larger than that budget; do not page a large file window by window. The continuation note states how many lines remain and whether one more call can return all of them. Separately, each returned line is capped at {max_line_chars} characters and a longer line ends with [truncated]. A truncated line needs another inspection method; rereading the same line window cannot recover its omitted characters. Use only complete source text for Edit.
@@ -387,7 +395,7 @@ Returns numbered lines (line number, tab, text). Choose the window needed for th
387
395
},
388
396
"limit":{
389
397
"type":"number",
390
-
"description":"Positive integer number of lines to return. Choose a window that covers the relevant context."
398
+
"description":"Positive integer number of lines to return. Omit it to read up to the full per-call budget in one call; set it only when a specific range is enough."
391
399
}
392
400
},
393
401
"required":["file_path"],
@@ -679,8 +687,11 @@ Returns numbered lines (line number, tab, text). Choose the window needed for th
@@ -920,7 +935,7 @@ Returns numbered lines (line number, tab, text). Choose the window needed for th
920
935
}else{
921
936
"keep pages omitted".to_string()
922
937
};
923
-
format!("To continue this extraction, {same_selection} and use offset={next_offset}; or choose a narrower pages range starting at offset=1.")
938
+
format!("To continue this extraction, {same_selection} and use offset={next_offset} without limit; or choose a narrower pages range starting at offset=1.")
924
939
}else{
925
940
"Choose another pages range if more context is needed.".to_string()
0 commit comments