Get container logs
get_container_logsFetch the last N lines of a Docker container's logs by id-prefix or exact name. Read-only, aids troubleshooting without side effects.
Instructions
READ-ONLY. Fetch the last N lines of a container's logs. Resolve the container by id-prefix or exact name. No side effects.
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": "get_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of trailing log lines to return (default 100). | |
| container | Yes | Container id-prefix or exact name. |