container_logs
Retrieve and display log output from a Docker container, with sensitive values automatically redacted. Specify container name and optional line limit.
Instructions
Collect and display the logs for a container. Values that look like secrets (PASSWORD=, "token": "...", etc.) are redacted before being returned. Args: container_name: Container name to collect logs tail: Number of log lines to return (default 200)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| container_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |