on main help sign in
chore: update `view` tool limit to 200KB

The model was enable to edit `internal/ui/model/ui.go` for me, because it has ~ 108KB and the limit was 100KB. (Without being able to read, the model also can't update it). We're keeping the `fetch` tool limit to 100KB.

commitf36f65ba9419eeaba63dedc129cdcf024d37a3ba authorAndrey Nering <andreynering@users.noreply.github.com> dateThu 30 Apr 2026, 18:18 (6 months ago) parentc7368b7
2 files changed+3−3
internal/agent/tools/view.go+1−1 internal/agent/tools/view.md+2−2
internal/agent/tools/view.go+1−1
@@ -53,7 +53,7 @@ type ViewResponseMetadata struct {
5353
5454const (
5555 ViewToolName = "view"
56− MaxViewSize = 100 * 1024 // 100KB
56+ MaxViewSize = 200 * 1024 // 200KB
5757 DefaultReadLimit = 2000
5858 MaxLineLength = 2000
5959)
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.
22
33<usage>
44- Provide file path to read
@@ -18,7 +18,7 @@ Read a file by path with line numbers; supports offset and line limit (default 2
1818</features>
1919
2020<limitations>
21−- Max file size: 100KB
21+- Max file size: 200KB
2222- Default limit: 2000 lines
2323- Lines >2000 chars truncated
2424- Binary files (except images) cannot be displayed