-- A trivial Lua tool that echoes back whatever the LLM asks it to. -- Useful for exercising the panto CLI's Lua extension path end-to-end. local panto = require("panto") panto.ext.register_tool { name = "echo", description = "Echo back the given message. Useful for testing whether tools work.", schema = { type = "object", properties = { message = { type = "string", description = "The text to echo back.", }, }, required = { "message" }, }, handler = function(input) return "echo: " .. input.message end, }