docker_container_logs
Retrieve recent Docker container logs for monitoring and troubleshooting, with options to filter by time, content, and line count.
Instructions
Get recent logs from a container
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_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | Container name or ID | |
| lines | No | Number of lines to return (default: 50, max: 500) | |
| since | No | Only logs since timestamp, e.g., "1h", "30m" | |
| filter | No | Regex pattern to filter log lines (e.g., "error|warn|fail") |