docker_logs
Retrieves logs from a specified Docker container. Optionally displays the last N lines (default 100) instead of streaming.
Instructions
Return 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": {
"container": "<container>"
},
"name": "docker_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of lines from the end to show. Default: 100. | |
| follow | No | Stream logs (not recommended for MCP — use tail instead). | |
| container | Yes | Container name or ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||