From f36f65ba9419eeaba63dedc129cdcf024d37a3ba Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 30 Apr 2026 18:18:21 -0300 Subject: [PATCH] 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. --- internal/agent/tools/view.go | 2 +- internal/agent/tools/view.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/agent/tools/view.go b/internal/agent/tools/view.go index 6880679804a1089fe6e765273bc375e126c817ad..3956a998698233aa194172551b5ab4f69b0d3a30 100644 --- a/internal/agent/tools/view.go +++ b/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 ) diff --git a/internal/agent/tools/view.md b/internal/agent/tools/view.md index 598d90da75b77d183791419c7d34efdea090f7c8..bfeada26efba57b33b771fdaffa1366f570a91eb 100644 --- a/internal/agent/tools/view.md +++ b/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. - Provide file path to read @@ -18,7 +18,7 @@ Read a file by path with line numbers; supports offset and line limit (default 2 -- Max file size: 100KB +- Max file size: 200KB - Default limit: 2000 lines - Lines >2000 chars truncated - Binary files (except images) cannot be displayed