pressable_install_plugin
Install and activate WordPress plugins on Pressable sites using the plugin slug from WordPress.org to extend site functionality.
Instructions
Install and activate a plugin on a site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| plugin_slug | Yes | Slug of the plugin from WP.org |
Implementation Reference
- tools/content.js:27-29 (handler)Handler for pressable_install_plugin, which performs a POST request to install a plugin.
handler: async (args) => { return await api.post(`/sites/${args.id}/plugins`, { plugins: [args.plugin_slug] }); } - tools/content.js:19-26 (schema)Input schema for pressable_install_plugin tool.
inputSchema: { type: 'object', properties: { id: { type: 'string' }, plugin_slug: { type: 'string', description: 'Slug of the plugin from WP.org' } }, required: ['id', 'plugin_slug'] }, - tools/content.js:16-30 (registration)Registration of pressable_install_plugin within the tools array.
{ name: 'pressable_install_plugin', description: 'Install and activate a plugin on a site.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, plugin_slug: { type: 'string', description: 'Slug of the plugin from WP.org' } }, required: ['id', 'plugin_slug'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/plugins`, { plugins: [args.plugin_slug] }); } },