chore: update `view` tool limit to 200KB

Andrey Nering created

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.

Change summary

internal/agent/tools/view.go | 2 +-
internal/agent/tools/view.md | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

Detailed changes

internal/agent/tools/view.go 🔗

@@ -53,7 +53,7 @@ type ViewResponseMetadata struct {
 
 const (
 	ViewToolName     = "view"
-	MaxViewSize      = 100 * 1024 // 100KB
+	MaxViewSize      = 200 * 1024 // 200KB
 	DefaultReadLimit = 2000
 	MaxLineLength    = 2000
 )

internal/agent/tools/view.md 🔗

@@ -1,4 +1,4 @@
-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.
+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.
 
 <usage>
 - Provide file path to read
@@ -18,7 +18,7 @@ Read a file by path with line numbers; supports offset and line limit (default 2
 </features>
 
 <limitations>
-- Max file size: 100KB
+- Max file size: 200KB
 - Default limit: 2000 lines
 - Lines >2000 chars truncated
 - Binary files (except images) cannot be displayed