container_logs
Retrieve Docker container logs with configurable tail count, optional timestamps, and ANSI code stripping.
Instructions
Get container logs. ANSI codes stripped, capped at max tail.
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 | Number of recent log lines (default 100, max 10000) | |
| container | Yes | Container name or ID | |
| timestamps | No | Include timestamps |