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-only
WPCode Content & Tools wpcode/get-error-logs

Pull 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.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.