Home / Servers / DigitalOcean API / harness_create_trigger
CreateTrigger creates a webhook or cron trigger.
An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.
CreateTrigger creates a webhook or cron trigger. Validation is synchronous, so a mistake is a 400/409 at creation, not a silent miss at the first fire. Exactly one of webhook / cron must be present and match kind. kind=cron forbids a webhook block… [POST /v2/agents/triggers]
Name on the gateway: digitalocean_api__harness_create_trigger · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
kind required | webhook | cron | How the trigger fires - on an event (webhook) or on a schedule (cron).… |
name required | string | Team-unique (among non-deleted triggers) trigger name. Same rules as session… |
session_mode required | fresh | reuse | fresh = a new session is created from the trigger's spec on every firing and… |
prompt_template required | string | The prompt sent on each fire. For cron it must not contain… |
output required | object | Output-delivery configuration on create/update. Exactly one of email / slack… |
session_template | string | fresh only. Full agents.yaml Agent manifest (YAML or JSON). Any embedded env… |
bound_session_id | string | reuse only. UUID of an existing session owned by the team. |
webhook | object | webhook block on create. Omitting provider defaults to custom. |
cron | object | cron block on create. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "digitalocean_api__harness_create_trigger",
"arguments": {
"kind": "…",
"name": "…",
"session_mode": "…",
"prompt_template": "…",
"output": "…"
}
}Or connect the DigitalOcean API server directly, which lists 874 tools including this one:
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the createtrigger creates a webhook or cron trigger. tool with kind set to ….