compose_logs
Fetches Docker Compose service logs with filters for tail, time range, follow, and specific services; helps diagnose container issues when logs are needed.
Instructions
Fetch service logs (docker compose logs).
Recovery: If logs empty, verify service names with compose_ps.
Return Format
{"success": bool, "action": str, "message": str, "result": {"output": str, "stderr": str}} On failure: {"success": false, "error": str, "recovery_options": [...]}
Examples
compose_logs(path="D:/dev/myapp", tail=100) compose_logs(path="D:/dev/myapp", services=["web"], since="2026-08-01T00:00:00")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| tail | No | ||
| since | No | ||
| until | No | ||
| follow | No | ||
| timeout | No | ||
| services | No | ||
| timestamps | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||