docker_logs
Retrieve Docker container logs with options to tail lines, filter by time, and display timestamps for debugging and monitoring.
Instructions
Get container logs. Supports tail, since timestamp, and timestamps options.
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": "docker_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | Container name or ID | |
| tail | No | Number of lines from end (e.g., 100) | |
| since | No | Show logs since (e.g., 10m, 1h, 2024-01-01) | |
| timestamps | No | Show timestamps |