edit_cron_job
Modify an existing cron job's schedule and command in cPanel using its line key, so you can update automated tasks without recreating the job.
Instructions
Edit an existing cron job
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": {
"linekey": "<linekey>",
"command": "<command>"
},
"name": "edit_cron_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| day | No | Day of month (1-31 or *) | * |
| hour | No | Hour (0-23 or *) | * |
| month | No | Month (1-12 or *) | * |
| minute | No | Minute (0-59 or *) | 0 |
| command | Yes | Command to execute | |
| linekey | Yes | Unique line key of the cron job (from list_cron_jobs) | |
| weekday | No | Day of week (0-6, 0=Sunday, or *) | * |