Container Logs Tool
container_logs_toolRetrieve Podman container logs by name or ID, with options for tail lines, timestamps, and since-time filtering to troubleshoot running containers.
Instructions
Get container logs.
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": {
"name": "<name>"
},
"name": "container_logs_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Container name or ID | |
| tail | No | Number of lines from the end of the logs. Defaults to the last 200; Podman's own default is the whole history, which for a long-running container is megabytes. Ask for more to go further back. | |
| since | No | Show logs since timestamp (RFC3339, e.g. "YYYY-MM-DDThh:mm:ssZ") | |
| timestamps | No | Add timestamps to each log line |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||