container_logs
Fetch and filter Docker container logs by tail count, time window, stdout/stderr, and text search to diagnose issues and page back through older entries.
Instructions
Log lines of one container with timestamps, newest last: the last N lines, a time window (since/until: 15m, 6h, 2d or an ISO time), stdout or stderr only, and a text search (contains; regex with regex: true). At most 500 lines per call; page back with until.
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_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| regex | No | ||
| since | No | ||
| until | No | ||
| stream | No | both | |
| contains | No | ||
| container | Yes | Container name (as in list_containers) or id |