docker_logs
Retrieve Docker container logs by specifying the container name or ID. Optionally set the number of lines to display or follow new log output in real time.
Instructions
View logs from 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 |
|---|---|---|---|
| lines | No | Number of lines to show (default: 100) | |
| follow | No | Follow log output (default: false) | |
| container | Yes | Container name or ID |