Create a trigger
create_triggerCreate a trigger that runs an action on an event or a cron schedule.
kind: "event" (match {event_type, condition}) or "schedule" (match {cron, timezone, payload}). action: {kind: "tool"|"emit"|"agent", target_id, args_template?} (emit uses {emit_type, data_template}). For schedules the first occurrence is armed automatically.
A daily routine (Porter doing work on its own every morning) is this tool with kind="schedule". Emailing an existing report on a cron is a different thing: execute_action("report_email_schedule.create"). Before proposing a routine, read get_knowledge(queries=["porter-metrics-routine"]).
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": {
"kind": "<kind>",
"action": "<action>"
},
"name": "create_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| match | No | ||
| action | Yes | ||
| limits | No | ||
| enabled | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||