export default { type: "function", name: "echo", description: "Echoes back the input string provided", strict: true, parameters: { type: "object", additionalProperties: false, required: [ "input" ], properties: { "input": { type: "string", description: "The text to be echoed back" } } } }; export async function run(args) { const text = typeof args?.text === 'string' ? args.text : ''; if (!text) { return { error: 'Missing required parameter: text' }; } return { content: text }; }