manage_wp_site
Execute WP-CLI commands to manage WordPress sites: handle posts, pages, plugins, themes, users, options, database, cron, and rewrite rules without leaving your workflow.
Instructions
Execute WP-CLI commands against a WordPress installation. Provides site management: posts, pages, plugins, themes, users, options, database, scaffolding, cron, rewrite rules. Requires WP-CLI to be installed. Dangerous commands (db drop, user delete, etc.) require manual execution. Do NOT include the 'wp' prefix in the command.
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": {
"command": "<command>",
"conversationId": "<conversationId>"
},
"name": "manage_wp_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. Will be appended as --format flag if not already in the command. | |
| wpPath | No | Path to the WordPress installation. Defaults to current directory. | |
| command | Yes | WP-CLI command to execute (without the 'wp' prefix). Examples: - "post list --post_type=page --format=json" - "plugin list --format=table" - "option get blogname" - "user list --role=administrator" - "theme status" - "db export backup.sql" - "scaffold plugin my-plugin" - "cron event list" - "rewrite flush" - "cache flush" | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |