Create Discord Bot Schedule
create_discord_bot_scheduleCreate a Discord bot schedule, recurring (cron) or one-time (runOnceAt); set exactly one of them. Bot owner only. action: restart, start, stop, command (needs command, sent to the bot console), backup (needs ZapX Pass Pro). Five-field cron evaluated in timezone (IANA, default UTC), at most every 5 minutes, max 20 schedules per bot. runOnceAt = local "YYYY-MM-DDTHH:mm" in timezone, in the future and at most one year ahead: the schedule runs exactly once and switches itself off. Write both as the customer's local wall-clock time and set timezone to their zone, never convert to UTC yourself. Requires confirm=true. Requires an active ZapX Pass (see server instructions).
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": {
"serviceId": "<serviceId>",
"name": "<name>",
"action": "<action>"
},
"name": "create_discord_bot_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | No | Recurring schedule: five-field cron in local time of `timezone`, e.g. "0 4 * * *" = daily 04:00. At most every 5 minutes. Leave out for a one-time schedule (`runOnceAt`). | |
| name | Yes | ||
| action | Yes | ||
| command | No | Bot console command, required for action=command. | |
| confirm | No | ||
| isActive | No | ||
| timezone | No | IANA zone the cron / runOnceAt is evaluated in, e.g. "Europe/Berlin". Default UTC. | |
| runOnceAt | No | One-time schedule: local date and time "YYYY-MM-DDTHH:mm" in `timezone` (e.g. "2026-11-20T03:00"), in the future and at most one year ahead. Runs exactly once, then switches itself off (isActive=false). Use it for "once tomorrow at 3am", never a cron with a fixed day and month. | |
| serviceId | Yes | ID of the Discord bot: the "id" field from list_account_services or list_discord_bots (e.g. "cmabc123..."). The numericId shown in the panel (e.g. "180") is accepted too. IDs of other service types do not work here. |