Recent log errors
get_recent_errorsRetrieves ERROR and WARN log entries with stack traces, timestamps, and repeat counts from project log files, redacting secrets, when a snapshot's 10 most recent errors are insufficient.
Instructions
Returns ERROR and WARN entries from the project's .log files (logs/, log/ and the project root), with stack traces, timestamps and repeat counts. Secrets are redacted. Use this when the snapshot shows errors and you need more than its 10 most recent, or the full stack traces.
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": "get_recent_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path to the project root. Optional: defaults to the client's workspace root, or the server's working directory. | |
| limit | No | Maximum number of entries to return, newest last. Default 50. |