Get Error Logs is a WordPress ability from WPCode — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get Error Logs
Read-onlyPull the full stack trace and file list of recent snippet-related failures site-wide.
Requires the WPCode (Insert Headers and Footers) plugin on WordPress 6.9+. All five abilities are read-only. 'list-snippets', 'detect-snippet-errors', and 'search-library' require the 'wpcode_edit_snippets' capability, while 'get-error-logs' and 'get-settings' require WordPress's 'manage_options' capability.
What it does
This ability returns WPCode's site-wide error logging data: a count of how many snippets are currently affected by an error, plus the list of underlying log files WPCode's logger has recorded. It takes no input parameters and reflects whatever WPCode's error handler and file logger have captured. Because it surfaces raw log file data, it's gated behind a stricter permission than the other diagnostic abilities, letting only site administrators hand this information to an AI assistant for broader troubleshooting across all snippets at once.
See it in action
You ask your AI assistant
"Pull the WPCode error logs and summarize how many snippets are currently affected."
Returns
An object with snippets_affected (integer count of snippets currently in an error state) and log_files (an array of the recorded log file entries).
Permission
The current user must have the 'manage_options' capability.
More WPCode abilities
Detect Snippet Errors
Check whether WPCode's error handler has flagged a specific snippet, and get the failure details.
Get WPCode Settings
Read WPCode's global settings, including plugin version and Safe Mode status.
List Code Snippets
Get a summary of every WPCode snippet, its status, and whether it's currently erroring.
Search WPCode Library
Search the WPCode Cloud Library of pre-built snippet templates by keyword.