Read container logs
container_logsFetch recent log lines from a container's stdout/stderr to diagnose crashes, monitor startup, or verify deployments. Optionally filter by a time window.
Instructions
Fetch the most recent log lines from a container's stdout/stderr. Use this to diagnose crashes, watch startup output or confirm a deployment. Supports an optional time window via since.
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 trailing lines to return (default from server config). | |
| since | No | Only return logs newer than this. Accepts a Unix timestamp (seconds) or a relative value like '10m' or '2h'. | |
| container | Yes | Container name, short id or full id. | |
| timestamps | No | Prefix each line with its timestamp (default: false). |