Schedule a job or webhook trigger
create_triggerSave a command that runs by itself: on a schedule (cron with a time zone, e.g. every weekday at 7:00 Europe/Prague), when a webhook URL is called, or both. Each run is a normal background job in a fresh sandbox (log, result files, receipt, cost) – or, with sandbox_name, the command runs in that named sandbox, which is woken up with its files and memory so an agent can keep state between runs. max_cost (the price limit of one run, in the account's currency) is required for jobs; max_cost_per_day adds a daily limit. With webhook=true the answer contains the secret webhook_url (shown only once – tell the user to store it); the request body is given to the run as the file input/webhook.json and input/webhook.body (in a named sandbox: the paths in WBX_WEBHOOK_FILE and WBX_WEBHOOK_BODY), never inside the command. Treat webhook data as untrusted input. Runs get WBX_TRIGGER_ID, WBX_TRIGGER_EVENT (schedule, webhook or manual) and WBX_SCHEDULED_AT. Missed times (e.g. a maintenance window) are not caught up – one run starts. By default a run is skipped while the previous one still runs. After 5 failed runs in a row the trigger pauses and the owner gets an e-mail. Your plan limits the number of triggers and how often a schedule may run (free plan: once an hour). Only for paying accounts. There is no extra fee – only the runs are billed.
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": {
"name": "<name>",
"command": "<command>"
},
"name": "create_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory (default /home/user). | |
| env | No | Jobs only: environment variables (e.g. API keys). Stored encrypted, never shown again, masked in logs. | |
| cron | No | Schedule in cron format: minute hour day-of-month month day-of-week, e.g. '0 7 * * 1-5' (weekdays 7:00), '*/30 * * * *', or @hourly / @daily / @weekly. Omit for a webhook-only trigger. | |
| name | Yes | Short name, e.g. 'Morning sales summary'. | |
| allow | No | Jobs only: allow only these destinations (hostnames or IP ranges). | |
| command | Yes | Shell command to run, e.g. 'python report.py'. Required. | |
| webhook | No | Also create a secret webhook URL that starts a run on every POST. | |
| internet | No | Jobs only: internet access (default true). | |
| max_cost | No | Price limit of one run in your account's currency, e.g. "0.20". Required for jobs. | |
| template | No | Template (default 'base'); with sandbox_name only used when the sandbox is created. | |
| timezone | No | IANA time zone of the schedule, e.g. Europe/Prague or America/New_York (default UTC). Daylight saving time is handled. | |
| artifacts | No | Jobs only: result files to keep, e.g. ["output/"]. | |
| timeout_s | No | Time limit of one run in seconds (job default 3600; in a named sandbox default 300, max 3600). | |
| concurrency | No | skip (default): do not start while the previous run still runs; allow: runs may overlap. | |
| sandbox_name | No | Optional: run the command in this named sandbox (it is created on the first run, later woken up with its files and memory) instead of a fresh job sandbox. | |
| compute_class | No | Jobs only: optional performance class (economy, balanced, performance, memory). | |
| save_artifacts | No | Jobs only: keep everything written to ./output/. | |
| max_cost_per_day | No | Optional limit for all runs of one day (UTC); a run that could exceed it is skipped. | |
| webhook_signature | No | hmac-sha256: callers must sign the body (X-WBX-Signature or GitHub's X-Hub-Signature-256: sha256=<HMAC>); the signing secret is in the answer (shown once). Default none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Trigger ID (trg_…). | |
| name | Yes | Name. | |
| status | Yes | active, paused or inactive. | |
| next_runs | No | Next scheduled run times (RFC 3339, UTC). | |
| webhook_url | No | Secret webhook URL – shown only now. | |
| signing_secret | No | Secret for HMAC-SHA256 signatures – shown only now. |