create_cron
Schedule recurring commands on a server using cron expressions, such as running a Laravel scheduler every minute.
Instructions
Create a cron job on a server, e.g. the Laravel scheduler 'php /path/artisan schedule:run' at frequency '* * * * *'.
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": {
"server_id": "<server_id>",
"command": "<command>",
"frequency": "<frequency>"
},
"name": "create_cron"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_id | Yes | The ID of the server | |
| command | Yes | The command to run, e.g. 'php /home/ploi/app/artisan schedule:run' | |
| frequency | Yes | A cron expression, e.g. '* * * * *' (every minute, the Laravel scheduler) | |
| user | No | The system user to run as (default 'ploi') |