Get Docker Container Logs
docker_container_logsRead recent log lines from an Unraid Docker container, with optional tail limit and timestamp-based paging, plus an automatic SSH fallback for containers that log only to stderr.
Instructions
Read-only. Returns the most recent log lines for a container. To page, re-pass the returned cursor as since; the boundary line repeats, so de-dupe. The API can miss containers that log only to stderr; when SSH is configured, this tool automatically falls back to docker logs for those (plain text in both formats). For the Unraid server's own log files use log_read instead.
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": {
"id": "<id>"
},
"name": "docker_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container id from docker_container_list. | |
| tail | No | Number of most recent log lines to return. | |
| since | No | Inclusive lower bound as an ISO-8601 timestamp; pass a previous response's `cursor` to page forward. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |