expose_agent
Create an API endpoint that triggers an agent by wrapping it in an automation, enabling invocation via trigger_automation.
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.
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 |