get_container_logs
Retrieve the last 50 lines of logs from a Docker container to troubleshoot issues. Provide the container ID to get its recent log output.
Instructions
Retrieve the last 50 lines of logs from a specific Docker 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": "get_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| containerId | Yes | The ID or Name of the container |