stream_logs
Retrieve Docker container logs with options to set tail count, filter by timestamp, and enable follow mode for real-time output.
Instructions
Get logs from a Docker container. Supports tail count, timestamp filtering, and follow mode.
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_id": "<container_id>"
},
"name": "stream_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | Container ID or name | |
| tail | No | Number of lines to show (default: 100) | |
| since | No | Show logs since timestamp (e.g., '2026-01-01T00:00:00Z') | |
| follow | No | Follow log output (default: false) |