container_logs
Read the last N stdout and stderr log lines from a container to diagnose recent errors, failures, or restart causes.
Instructions
[READ] Tail the last N log lines of a container (stdout + stderr).
Args: container_id: Container id or name. tail: Number of lines from the end (1..2000, default 100). target: Target name from config; omit for the default.
Returns an envelope: {"lines": [...], "returned": N, "limit": L, "truncated": bool}. When "truncated" is true the container has older log history than was returned — re-run with a higher tail rather than treating this as the container's complete log.
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": "container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| target | No | ||
| container_id | Yes |