container_autopsy
Diagnose why a Docker container died by collecting exit code, OOM state, restart count, uptime, and logs. Get a markdown report with the cause and exact fix.
Instructions
Diagnose WHY a Docker container died, not just THAT it died. Collects exit code, OOM state, restart count, uptime and last log lines, then returns a markdown autopsy report with the cause of death and the exact fix. Works on running containers too.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"container": "<container>"
},
"name": "container_autopsy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of log lines to collect (default 40). | |
| container | Yes | Container name or id to autopsy. |