diff options
| author | T <t@tjp.lol> | 2026-05-27 20:39:45 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-05-30 16:29:43 -0600 |
| commit | 5c016cfdbcb122e2b4f0496ef946642d68953c4b (patch) | |
| tree | 81feb6ac75045361e8e61d609e4e34d14cecb3b6 /agent/tools/read.lua | |
| parent | 48651e123ef0cf1d02eac781902517c0628b310a (diff) | |
tool names prefixed with `std.`
Diffstat (limited to 'agent/tools/read.lua')
| -rw-r--r-- | agent/tools/read.lua | 10 |
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", |
