debug_wordpress
Troubleshoot WordPress problems by checking debug constants, reading debug.log errors, validating wp-config.php, running health checks, and listing active plugins for conflict detection.
Instructions
Debug and troubleshoot a WordPress installation. Actions: status (debug constants, PHP version, log size), errors (read debug.log), config (check wp-config.php constants), health (verify checksums, check DB, cron), conflicts (list plugins for conflict detection).
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": {
"wpPath": "<wpPath>",
"conversationId": "<conversationId>"
},
"name": "debug_wordpress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of log lines to read (for 'errors' action). | |
| action | No | Action to perform: - status: Overall debug status (constants, PHP version, log size) - errors: Read last errors from debug.log - config: Check wp-config.php debug constants - health: Run WP-CLI diagnostics (verify checksums, check DB, cron) - conflicts: List active plugins for conflict detection | status |
| wpPath | Yes | Absolute path to the WordPress installation. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |