pressable_convert_site
Convert WordPress sites between staging and live environments or to DupliKit/Sandbox configurations using the Pressable API.
Instructions
Convert a site between staging and live, or to DupliKit/Sandbox.
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": {
"id": "<id>",
"target_type": "<target_type>"
},
"name": "pressable_convert_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| target_type | Yes |
Implementation Reference
- tools/sites.js:104-107 (handler)The handler logic for 'pressable_convert_site' which sends a POST request to the conversion endpoint.
handler: async (args) => { const endpoint = `/sites/${args.id}/convert-${args.target_type}`; return await api.post(endpoint); } - tools/sites.js:96-103 (schema)The input schema definition for 'pressable_convert_site'.
inputSchema: { type: 'object', properties: { id: { type: 'string' }, target_type: { type: 'string', enum: ['staging', 'live', 'duplikit', 'sandbox'] } }, required: ['id', 'target_type'] }, - tools/sites.js:94-108 (registration)The registration block for the 'pressable_convert_site' tool.
name: 'pressable_convert_site', description: 'Convert a site between staging and live, or to DupliKit/Sandbox.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, target_type: { type: 'string', enum: ['staging', 'live', 'duplikit', 'sandbox'] } }, required: ['id', 'target_type'] }, handler: async (args) => { const endpoint = `/sites/${args.id}/convert-${args.target_type}`; return await api.post(endpoint); } },