docker_logs
Read recent logs from a Docker container to diagnose issues. Specify the container, optional host, and trailing line count.
Instructions
Read the recent logs of a Docker 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 |
|---|---|---|---|
| host | No | target host name from the opsgate config; omit for the default host | |
| lines | No | how many trailing log lines (default 100, max 2000) | |
| container | Yes | container name or ID |