Get Bounded Docker Container Logs
get_container_logsFetch recent, bounded, ANSI-stripped Docker container logs from a selected 1Panel node with inline secret redaction for troubleshooting.
Instructions
Fetch recent tail logs from a Docker container on the selected node (bounded to at most 500 lines / 64 KiB, ANSI-stripped, with inline secret redaction).
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 | Maximum number of tail lines to fetch (1-500, default 100). | |
| since | No | Optional log window filter (e.g. "1h", "24h", or ""). | |
| nodeId | No | Target node ID: "local" for the Main Node, or a numeric string ID (e.g. "3") from list_nodes. | local |
| container | Yes | Exact container name on the selected node. | |
| timestamp | No | Include Docker log timestamps. |