run_due_agents
Enqueue a background run for every agent of this tenant whose schedule is due (trigger_mode 'server_job', status active or provisioned, next_run_at in the past), and move each one's next_run_at forward by its interval. An agent with a working window (run_from/run_to/run_days, in its own timezone) that falls due OUTSIDE that window is not started: its next_run_at moves to the next opening and the run is skipped, not caught up. This is what the five-minute clock calls; a human can call it to make a schedule fire now instead of waiting. Returns which agents were started and which were deferred, with the reason. It does not wait for them to finish — watch /app/agent-runs for that. STARTS AGENTS that act on this tenant's data, so it goes through the permission gate.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_due_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Only report which agents are due; enqueue nothing and change no schedule. |