tools/read_tool library

Functions

createReadTool(Genkit ai, {required ToolRuntime runtime}) → Tool<JsonMap, String>
Builds the tool that reads text files with line numbers.
formatNumberedLines(String content, {required int offset, required int limit}) → String
Formats content like cat -n, starting at the 1-based offset.