Tool for reading file contents, after pi's read tool.
Supports text files and images (jpg, png, gif, webp), recognized by their
content. Images are returned as base64-encoded attachments. Text output is
cut to 2000 lines or 50KB, whichever comes first, and ends with a notice
that names the offset to continue from.
All filesystem access goes through the active Condukt.Sandbox, so the
same agent definition behaves identically against the host filesystem
(Sandbox.Local), an in-memory virtual filesystem (Sandbox.Virtual), or a
microVM-backed guest workspace (Sandbox.Microsandbox).
Parameters
path- Path to the file (relative or absolute)offset- Line number to start reading from (1-indexed, optional)limit- Maximum number of lines to read (optional)
Summary
Functions
Callback implementation for Condukt.Tool.description/0.
Callback implementation for Condukt.Tool.name/0.
Callback implementation for Condukt.Tool.parameters/0.
Callback implementation for Condukt.Tool.replay_safe?/1.
Functions
Callback implementation for Condukt.Tool.description/0.
Callback implementation for Condukt.Tool.name/0.
Callback implementation for Condukt.Tool.parameters/0.
Callback implementation for Condukt.Tool.replay_safe?/1.