Expose Agent
expose_agentExpose an agent as an API endpoint by creating an automation with a trigger, enabling invocation via route_name.
Instructions
Expose an agent as an API endpoint trigger.
Creates an automation wrapping the specified agent and an endpoint trigger so the agent can be started via trigger_automation using the assigned route_name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>",
"automation_name": "<automation_name>"
},
"name": "expose_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | UUID of the agent to expose (agent_id from get_agents) | |
| route_name | No | API route name; defaults to automation_name with spaces replaced by underscores | |
| endpoint_name | No | Name for the trigger endpoint | |
| automation_name | Yes | Name for the automation wrapping the agent | |
| endpoint_schema | No | JSON Schema for endpoint input; defaults to open schema | |
| endpoint_description | No | Description for the endpoint trigger |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The status of the expose operation |