From 957d75d226a308e7023b1ef6505e28bd570a142d Mon Sep 17 00:00:00 2001 From: afjcjsbx Date: Fri, 27 Mar 2026 22:40:35 +0100 Subject: [PATCH] fix offset --- pkg/tools/filesystem.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tools/filesystem.go b/pkg/tools/filesystem.go index d40c44c8f..4e4076a12 100644 --- a/pkg/tools/filesystem.go +++ b/pkg/tools/filesystem.go @@ -532,7 +532,7 @@ func (t *ReadFileLinesTool) Execute(ctx context.Context, args map[string]any) *T return ErrorResult(err.Error()) } if startLine < 1 { - return ErrorResult("offset must be >= 1") + return ErrorResult("start_line must be >= 1") } limit := int64(-1) @@ -635,7 +635,7 @@ func (t *ReadFileLinesTool) Execute(ctx context.Context, args map[string]any) *T endLine := startLine + linesRead - 1 displayPath := filepath.Base(path) header := fmt.Sprintf( - "[file: %s | read: lines %d-%d (0-indexed) | bytes: %d]", + "[file: %s | read: lines %d-%d (1-indexed) | bytes: %d]", displayPath, start, endLine, bytesRead, )