pressable_toggle_maintenance_mode
Activate or deactivate maintenance mode for a WordPress site to temporarily restrict access during updates or maintenance.
Instructions
Toggle maintenance mode for a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| enabled | Yes |
Implementation Reference
- tools/sites.js:132-134 (handler)The handler function for the pressable_toggle_maintenance_mode tool which makes a POST request to toggle maintenance mode.
handler: async (args) => { return await api.post(`/sites/${args.id}/maintenance-mode`, { enabled: args.enabled }); } - tools/sites.js:124-131 (schema)The input schema for the pressable_toggle_maintenance_mode tool defining the expected 'id' and 'enabled' arguments.
inputSchema: { type: 'object', properties: { id: { type: 'string' }, enabled: { type: 'boolean' } }, required: ['id', 'enabled'] }, - tools/sites.js:122-135 (registration)The full tool definition and registration for pressable_toggle_maintenance_mode in tools/sites.js.
name: 'pressable_toggle_maintenance_mode', description: 'Toggle maintenance mode for a site.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, enabled: { type: 'boolean' } }, required: ['id', 'enabled'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/maintenance-mode`, { enabled: args.enabled }); } },