get_container_logs
Retrieve recent stdout/stderr log lines from a container by ID to diagnose issues quickly. Specify line count and timestamps as needed.
Instructions
Get recent log lines from a container's stdout/stderr output.
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_id": "<container_id>"
},
"name": "get_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of log lines to retrieve, max 1000, default 100 | |
| timestamps | No | Include timestamps in log output | |
| container_id | Yes | Internal container ID |