on main help sign in
chore: update `view` tool limit to 200KB
f36f65bAndrey Nering
internal/agent/tools/view.go+1−1
@@ -53,7 +53,7 @@ type ViewResponseMetadata struct {
53
53
54const (
54const (
55 ViewToolName = "view"
55 ViewToolName = "view"
56− MaxViewSize = 100 * 1024 // 100KB
56+ MaxViewSize = 200 * 1024 // 200KB
57 DefaultReadLimit = 2000
57 DefaultReadLimit = 2000
58 MaxLineLength = 2000
58 MaxLineLength = 2000
59)
59)
internal/agent/tools/view.md+2−2
@@ -1,4 +1,4 @@
1−Read a file by path with line numbers; supports offset and line limit (default 2000, max 100KB); renders images (PNG, JPEG, GIF, BMP, SVG, WebP); use ls for directories.
1+Read a file by path with line numbers; supports offset and line limit (default 2000, max 200KB); renders images (PNG, JPEG, GIF, BMP, SVG, WebP); use ls for directories.
2
2
3<usage>
3<usage>
4- Provide file path to read
4- Provide file path to read
@@ -18,7 +18,7 @@ Read a file by path with line numbers; supports offset and line limit (default 2
18</features>
18</features>
19
19
20<limitations>
20<limitations>
21−- Max file size: 100KB
21+- Max file size: 200KB
22- Default limit: 2000 lines
22- Default limit: 2000 lines
23- Lines >2000 chars truncated
23- Lines >2000 chars truncated
24- Binary files (except images) cannot be displayed
24- Binary files (except images) cannot be displayed