Get container logs
docker_get_container_logsRetrieve container logs by container ID to inspect runtime output and troubleshoot issues, with optional tail and multi-context targeting.
Instructions
Invoke the get_container_logs operation.
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": "docker_get_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | 50 | |
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| container_id | Yes |