stack_logs
Retrieve log output from every container in a specified Docker Compose stack, with an option to limit lines per container.
Instructions
Collects logs from all containers in a compose stack. Args: project_name: unique name for this stack, used to group/manage its containers tail: number of log lines to return per container (default 200)
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": {
"project_name": "<project_name>"
},
"name": "stack_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| project_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |