Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ai.agent.run "Agent Name" {
args = {
prompt: $input.user_query
// ...other arguments
}
allow_tool_execution = true
} as $agent_result
ai.agent.run "Task Management Agent" {
args = { prompt: $input.task }
allow_tool_execution = true
} as $result
ai.external.mcp.tool.list {
mcp_url = "https://external-mcp-server.com"
api_key = $env.mcp_api_key
} as $tool_list
ai.external.mcp.tool.list {
mcp_url = "https://my-mcp-server.com"
api_key = $env.my_mcp_key
} as $tools
ai.external.mcp.tool.run {
mcp_url = "https://external-mcp-server.com"
api_key = $env.mcp_api_key
tool_name = "tool-lookup-user"
input = {
user_id: $input.user_id
}
} as $tool_result
ai.external.mcp.tool.run {
mcp_url = "https://my-mcp-server.com"
api_key = $env.my_mcp_key
tool_name = "get_user_details"
input = { email: $input.email }
} as $user_details
ai.external.mcp.server_details {
mcp_url = "https://external-mcp-server.com"
api_key = $env.mcp_api_key
} as $server_info
ai.external.mcp.server_details {
mcp_url = "https://my-mcp-server.com"
api_key = $env.my_mcp_key
} as $details
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
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
Was this page helpful?