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)
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_name": "<container_name>"
},
"name": "container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| container_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |