pressable_update_site
Update settings for a WordPress site, including its name and PHP version, through the Pressable API.
Instructions
Update settings for a specific site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| php_version | No |
Implementation Reference
- tools/sites.js:172-175 (handler)The handler function for 'pressable_update_site' tool that performs a PUT request to update the site settings.
handler: async (args) => { const { id, ...data } = args; return await api.put(`/sites/${id}`, data); } - tools/sites.js:163-171 (schema)The input schema definition for 'pressable_update_site' tool, defining the required ID and optional parameters like name and PHP version.
inputSchema: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, php_version: { type: 'string' } }, required: ['id'] }, - tools/sites.js:161-176 (registration)The full definition and registration of the 'pressable_update_site' tool within the siteTools array.
name: 'pressable_update_site', description: 'Update settings for a specific site.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, name: { type: 'string' }, php_version: { type: 'string' } }, required: ['id'] }, handler: async (args) => { const { id, ...data } = args; return await api.put(`/sites/${id}`, data); } },