Skip to main content

Droost: Last Error

droost_last_error Read-only

Module: Droost core

The most recent PHP/watchdog error with its backtrace — the first call after anything 500s. Faster than paging through droost_logs when you only need "what just broke".

Example call
{
    "tool": "droost_last_error",
    "arguments": {}
}
Example response — captured live on this site
{
    "success": true,
    "message": "No error-level log entries found.",
    "data": {
        "count": 0,
        "entries": []
    }
}

Returns the most recent error-level Drupal log entries (severity error or worse: error, critical, alert, emergency), newest first. Requires the Database Logging (dblog) module. Read-only.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "limit": {
            "type": "integer",
            "description": "How many recent errors to return (default 1, max 50)."
        }
    }
}