create_site
Create a new site on a Laravel Forge server by specifying domain, project type, PHP version, and optional settings like isolated user or database.
Instructions
Create a new site on a server
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>",
"domain": "<domain>",
"projectType": "<projectType>"
},
"name": "create_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | The domain name (e.g., example.com) | |
| database | No | Database name to create | |
| isolated | No | Isolate site with its own user | |
| serverId | Yes | The ID of the server | |
| directory | No | Web directory path (default: /public) | |
| phpVersion | No | PHP version (e.g., php84, php83) | |
| projectType | Yes | Project type |