Container logs
container_logsFetch the most recent log lines from a container by ID or name, with an optional tail parameter to control line count.
Instructions
Fetch the most recent log lines from a container (default: last 100). The tail is applied server-side via the CLI -n flag.
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": {
"id": "<id>"
},
"name": "container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container ID or name | |
| tail | No | Number of lines (default 100) |