compose_logs
Retrieve a bounded slice of logs from a Docker Compose project without following. Filter by services, time range, and line count, with optional timestamps.
Instructions
Fetch a bounded slice of logs from a compose project (never follows).
args:
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
services - Restrict to these services (default: all)
tail - Lines per container (default 200; 0 = all, still capped at MAX_CLI_OUTPUT_BYTES)
since - Show logs since this timestamp/duration (e.g. "10m", "2024-01-01T00:00:00")
until - Show logs before this timestamp/duration
timestamps - Include per-line timestamps
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | ||
| files | No | ||
| since | No | ||
| until | No | ||
| services | No | ||
| timestamps | No | ||
| project_dir | No | ||
| project_name | No |