Get Docker Compose Logs
compose_get_logsRead-only
Fetch recent Docker Compose logs with automatic secret redaction, optional error-only filtering, and safety truncation to inspect services without exposing secrets.
Instructions
Fetch recent Docker Compose logs with automatic secret redaction, optional error filtering, and 20,000-char safety truncation.
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": "compose_get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory where the Docker Compose project lives. | |
| tail | No | Number of trailing log lines to fetch per service (1-500, default 100). | |
| service | No | Optional service name to filter logs for a single service. | |
| errorsOnly | No | When true, filter log lines to those matching error/exception/fatal/panic/failed. | |
| composeFile | No | Optional path to a specific compose file (passed via -f). |