docker_logs
Fetch the last lines of a Docker container's logs (50 by default) without streaming, so you can inspect recent container output on the local host or a configured remote server.
Instructions
Get logs from a Docker container: the last lines only, 50 by default, and it returns rather than following the stream
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": {
"name": "<name>"
},
"name": "docker_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Container name to get logs from | |
| lines | No | Number of log lines to return (default: 50) | |
| server | No | Remote server name from config (optional, runs locally if omitted) |