docker_logs
Retrieve logs from a Docker container by specifying container ID or name, with options to limit line count or show last N lines.
Instructions
Get 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_id": "<container_id>"
},
"name": "docker_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | Container ID or name | |
| lines | No | Number of lines to fetch (default 100) | |
| tail | No | Show last N lines (default: all) |