mcp-easy-ai__wp_get_error_log
Get the last lines of the PHP error log, newest last. Reads ONLY the error_log path PHP is configured with (where WP_DEBUG_LOG writes) or, failing that, wp-content/debug.log — never any other file. Optional: lines (default 100, max 1000), grep (plain case-insensitive text match, applied after redaction). Secrets are redacted (API keys, Bearer/Basic tokens, password=… values, URL credentials, salts, JWTs). Returns { path_source ("error_log ini" or "wp-content/debug.log"), path (relative to the WordPress root, or the file name only), size_bytes, modified (ISO 8601 UTC), lines: [...], returned, truncated (true when the 64 KB response cap or the scan limit cut the result), scanned_bytes }, or { path_source: null, reason } when no readable log exists. Requires manage_options; on multisite only a network administrator, because the log is shared by every site on the server. Through Royally: its server marks it read-only, so it runs straight away.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grep | No | Only lines containing this text (case-insensitive, not a regex). | |
| lines | No | How many of the most recent (matching) lines to return, 1-1000. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) |