docker/containers
List Docker containers via the local Engine API without the CLI; filter by state or name, include stopped ones, and return text or JSON.
Instructions
Lists Docker containers through the Engine API on the local socket (no docker CLI needed): name, image, state, status, ports. Read-only. Only running containers unless all: true; state (created, running, paused, exited, ...) filters to one state and implies all; pattern is a glob on the container name (web-*); limit returns the newest N. Every container is listed: the grant's containers: list applies only to docker/manage, docker/logs and docker/exec. Text is a block per container plus a hint line, or No containers found matching the criteria.; output_format: json (also yaml/table/wide) returns an array of objects (name, names, id, full_id, image, image_id, command, state, status, created, ports, labels), [] when empty. For logs use docker/logs, to start or stop docker/manage, for one container's details the docker-container://<name>/status resource. Always runs as root: no privileged argument, refused unless the user's grant has allowed: true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Include stopped containers (docker ps -a) | |
| limit | No | Return at most this many containers (newest first) | |
| state | No | Only containers in this state (implies all) | |
| pattern | No | Only containers whose name matches this glob (e.g. 'web-*') | |
| output_format | No | Use json for structured output (yaml, table and wide return the same JSON); default is text |