container_logs
Retrieve container logs to monitor application output, debug issues, and track container activity by specifying container ID and optional parameters like tail lines or follow mode.
Instructions
Get logs from a container
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": {
"containerId": "<containerId>"
},
"name": "container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containerId | Yes | Container ID or name | |
| tail | No | Number of lines to show from the end of the logs | |
| follow | No | Follow log output |