compose_ps
Lists Docker Compose services as JSON for a project path, optionally including all or selected services, so you can inspect service status programmatically.
Instructions
List compose services as JSON (docker compose ps --format json).
Return Format
{"success": bool, "action": str, "message": str, "result": {"output": str, "stderr": str}} result.output: JSON string from docker compose.
Examples
compose_ps(path="D:/dev/myapp") compose_ps(path="D:/dev/myapp", all_services=True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | . | |
| timeout | No | ||
| services | No | ||
| all_services | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||