container_logs
Tail the last N log lines of a container's stdout and stderr, with configurable line count up to 2000, for rapid troubleshooting.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| target | No | ||
| container_id | Yes |