system_logs
Fetch recent log output from container system services to diagnose daemon-level failures such as containers that will not start or services that fail to come up.
Instructions
Fetch recent log output from the `container` system services (the apiserver and
its helpers), as opposed to a single container's logs.
Reach for this when the daemon itself is misbehaving: containers that will not
start, a system service that fails to come up, or errors that never surface in
per-container logs. For one container's stdout/stderr, use `get_logs` instead.
This tool never passes `--follow`; streaming would block until the subprocess
timeout killed it. Widen the window instead.
Args:
last: How far back to read, as a number with an optional m/h/d suffix
(a bare number means seconds). Defaults to "5m".
Returns:
On success: {"status": "ok", "logs": str}
On error: {"status": "error", "message": str, "details": str}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "system_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | 5m |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |