Automations: Run automation
automation_executeRun an automation now for one period (default: the period a run today acts for — for a recurring invoice the previous month). Allowed periods = automation_get's runnable_periods (the next period plus up to 4 earlier ones not yet closed, never before the automation started). The call itself does NOTHING: it returns a confirmation whose description is the server's preview — for an invoice the number, invoice and due dates, total, and the duplicate check (if any non-cancelled invoice to this customer already covers that month, nothing will be created). Show it verbatim; the action runs only after confirm_action. A period already done, covered or skipped is refused with «вже є: …». A recurring invoice is created as Open and its PDF goes to the owner's Telegram; nothing is sent to the client and no status is changed. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": "automation_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | The period, YYYY-MM. For a recurring invoice it is the SERVICE month (2026-10 = work done in October, invoiced in November). | |
| automation | No | The automation's id (from automation_list) or a part of its name. May be omitted when the cabinet has exactly one automation. |