pressable_run_bash_commands
Execute Bash commands on a WordPress site to automate server operations, manage configurations, or perform maintenance tasks directly through the Pressable API.
Instructions
Run Bash commands on a specific site.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| commands | Yes | List of Bash commands |
Implementation Reference
- tools/automation.js:38-40 (handler)The handler for the 'pressable_run_bash_commands' tool, which performs an API request to execute bash commands.
handler: async (args) => { return await api.post(`/sites/${args.id}/wordpress/commands`, { commands: args.commands }); } - tools/automation.js:26-37 (schema)Input schema definition for the 'pressable_run_bash_commands' tool.
inputSchema: { type: 'object', properties: { id: { type: 'string' }, commands: { type: 'array', items: { type: 'string' }, description: 'List of Bash commands' } }, required: ['id', 'commands'] }, - tools/automation.js:23-41 (registration)Registration of the 'pressable_run_bash_commands' tool.
{ name: 'pressable_run_bash_commands', description: 'Run Bash commands on a specific site.', inputSchema: { type: 'object', properties: { id: { type: 'string' }, commands: { type: 'array', items: { type: 'string' }, description: 'List of Bash commands' } }, required: ['id', 'commands'] }, handler: async (args) => { return await api.post(`/sites/${args.id}/wordpress/commands`, { commands: args.commands }); } },