get_docker_container_logs
Fetch a Docker container's stdout/stderr logs, optionally limiting to a number of lines and including timestamps. Read-only via the Docker API with environment values redacted.
Instructions
Returns a container's stdout/stderr log lines. Params: tail (line count) and timestamps. Read-only via the Docker API. Fatal if the daemon is unreachable or the container is unknown. Environment values are redacted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | number of lines to tail (default: 100, max: 10000) | |
| timestamps | No | include timestamps (default: false) | |
| container_id | Yes | container name or ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| errors | No |