create_worker
Create a queue worker for a Laravel Forge site, configuring connection, queue, timeout, attempts, and processes.
Instructions
Create a queue worker for a site
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": {
"serverId": "<serverId>",
"siteId": "<siteId>",
"connection": "<connection>"
},
"name": "create_worker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queue | No | Queue name (default: default) | |
| sleep | No | Sleep seconds when no jobs | |
| tries | No | Max job attempts | |
| daemon | No | Run as daemon | |
| siteId | Yes | The ID of the site | |
| timeout | No | Job timeout in seconds | |
| serverId | Yes | The ID of the server | |
| processes | No | Number of worker processes | |
| connection | Yes | Queue connection (e.g., redis, database) | |
| phpVersion | No | PHP version (e.g., php84) |