get_docker_container_logs
Retrieve recent stdout/stderr logs from a specific Docker container by name, with configurable line count, returning JSON for monitoring and troubleshooting.
Instructions
Safely read stdout/stderr logs from a specific Docker container.
Args: container_name: Container name or container short/full ID. lines_count: Number of recent log lines to retrieve (default: 50, max: 1000).
Returns: JSON string containing the container logs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines_count | No | ||
| container_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |