summaryrefslogtreecommitdiff
path: root/agent/tools/read.lua
diff options
context:
space:
mode:
Diffstat (limited to 'agent/tools/read.lua')
-rw-r--r--agent/tools/read.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/agent/tools/read.lua b/agent/tools/read.lua
index e6192ae..05661c4 100644
--- a/agent/tools/read.lua
+++ b/agent/tools/read.lua
@@ -1,14 +1,14 @@
-- Read a file from disk and return its text verbatim.
--
--- Output cap: 50 KB and 2000 lines, whichever is hit first. Matches
--- pi's defaults; large enough to be useful, small enough to keep the
--- model's context manageable. A single tool result that blows out the
+-- Output cap: 50 KB and 2000 lines, whichever is hit first. Large
+-- enough to be useful, small enough to keep the model's context
+-- manageable. A single tool result that blows out the context window is
-- context window is worse than one that silently asks for a follow-up
-- scoped read.
--
-- The slicing knobs are `offset` (1-based line to start at) and
-- `limit` (max lines to return). SQL-shaped — models recognize the
--- idiom — and matches pi's tool surface. When the cap is hit, a
+-- idiom. When the cap is hit, a
-- `[truncated: ...]` marker names the next `offset` for a follow-up
-- call. The file body itself is byte-for-byte what's on disk, so
-- `edit` anchors round-trip exactly.
@@ -17,7 +17,7 @@ local MAX_BYTES = 50 * 1024 -- 50 KB
local MAX_LINES = 2000
return {
- name = "read",
+ name = "std.read",
description = "Read a file from disk. Output is truncated to the first 50KB or 2000 lines, whichever is hit first; on truncation a marker names the next offset for a follow-up call. Use offset/limit to slice.",
schema = {
type = "object",