Runs an AI agent defined in your Xano workspace. This allows you to invoke an LLM-powered agent, optionally passing arguments and enabling tool execution.Syntax:
Lists all available tools exposed by an external MCP (Model Context Protocol) server. Use this to discover tool capabilities from a remote MCP endpoint.Syntax:
Copy
Ask AI
ai.external.mcp.tool.list { mcp_url = "https://external-mcp-server.com" api_key = $env.mcp_api_key} as $tool_list
Example:
Copy
Ask AI
ai.external.mcp.tool.list { mcp_url = "https://my-mcp-server.com" api_key = $env.my_mcp_key} as $tools
Renders a text or HTML template using the Twig templating engine, allowing for dynamic content generation with variables and logic.Syntax:
Copy
Ask AI
util.template_engine { value = """ Hello {{ $input.name }}, {% if $input.is_premium %} Thank you for being a premium member! {% else %} Upgrade to premium for more features. {% endif %} """} as $output
Example:
Copy
Ask AI
util.template_engine { value = """ <h1>Welcome, {{ $input.username }}!</h1> {% if $input.is_admin %} <p>You have admin access.</p> {% else %} <p>Standard user account.</p> {% endif %} """} as $html