pressable_create_site
Create a new WordPress site with configurable PHP version, datacenter location, and installation options through the Pressable API.
Instructions
Create a new WordPress site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the site | |
| datacenter | No | Datacenter ID | |
| php_version | No | PHP version (e.g., 8.1) | |
| install_option | No | Install option (e.g., "none", "wp_latest") |
Implementation Reference
- tools/sites.js:34-50 (handler)The definition of the 'pressable_create_site' tool, including its schema and the handler that calls the Pressable API to create a site.
{ name: 'pressable_create_site', description: 'Create a new WordPress site.', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'The name of the site' }, datacenter: { type: 'string', description: 'Datacenter ID' }, php_version: { type: 'string', description: 'PHP version (e.g., 8.1)' }, install_option: { type: 'string', description: 'Install option (e.g., "none", "wp_latest")' } }, required: ['name'] }, handler: async (args) => { return await api.post('/sites', args); } },