publish_trigger
Make the trigger's working copy live: it starts checking the app on its schedule and handing items to the playbooks that use it. Refused unless its last test was of exactly this working copy and passed. A trigger can be shared by several playbooks, so confirm with the user what goes live before calling this. Pass definitionHash from get_trigger as expectedDefinitionHash so publish is refused if the trigger changed while deciding. cursor says where it carries on from: { to: "keep" } (default), { to: "now" }, { to: "hoursBack", hours } (up to 30 days) or { to: "time", time }. Anything but keep looks at older items again: what a playbook already handled won't run twice, but what it hasn't handled yet will, so confirm first and pass lookBackTarget from the same get_trigger as expectedLookBackTarget for hoursBack or time. A playbook can only be published once the triggers it uses are published.
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": {
"triggerId": "<triggerId>",
"expectedDefinitionHash": "<expectedDefinitionHash>"
},
"name": "publish_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | Where it carries on from. Omit to keep where it is. | |
| triggerId | Yes | The trigger's id, from list_triggers or create_trigger. | |
| expectedDefinitionHash | Yes | The `definitionHash` from the get_trigger you showed the user, taken before you asked them. | |
| expectedLookBackTarget | No | For hoursBack or time: the `lookBackTarget` from the get_trigger you showed the user. |