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
contentlikecat -n, starting at the 1-basedoffset.