wp_cli_status
Check if WP-CLI is available for WordPress operations. Verifies wp-config.php settings, proc_open availability, and returns path and version to prevent errors before running WP-CLI commands.
Instructions
Check WP-CLI availability. Returns whether the feature is enabled in wp-config.php, whether proc_open is available, the WP-CLI path and version. Call this before any WP-CLI command.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wp_cli_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||