docker_logs
Fetch recent stdout/stderr log lines from a Docker container on a specified host, with optional tail limit, for safe infrastructure troubleshooting.
Instructions
Fetch the most recent combined stdout/stderr log lines from a container on a Docker host.
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": {
"server": "<server>",
"container": "<container>"
},
"name": "docker_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | number of most recent log lines to return (default 100) | |
| server | Yes | the inventory server name to check | |
| container | Yes | container name or ID to fetch logs for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | Yes | ||
| server | Yes | ||
| container | Yes | ||
| timestamp | Yes | ||
| line_count | Yes |