schedule_job
Schedule a cloud code job to run once or every N minutes, and pass an existing job objectId to update its schedule.
Instructions
Schedule a job defined in cloud code to run once or every N minutes, e.g. a nightly cleanup or a report. Pass objectId to change an existing schedule.
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": {
"appObjectId": "<appObjectId>",
"jobName": "<jobName>",
"startAfter": "<startAfter>"
},
"name": "schedule_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | Parameters to pass to the job | |
| jobName | Yes | Name of the job (must be defined in cloud code) | |
| objectId | No | Object ID of existing job to update (optional) | |
| startAfter | Yes | ISO 8601 date string when the job should first run (must be at least 5 minutes in the future) | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) | |
| description | No | Description of this scheduled job | |
| repeatMinutes | No | Repeat interval in minutes (optional) |