portainer_containers_list
List Docker containers on an endpoint, with optional filters for name, stack, or including stopped containers. Use for Swarm stacks instead where applicable.
Instructions
List containers on an endpoint, with their stack and service.
On a Swarm endpoint prefer portainer_services_list / stack_status — containers there are task instances that come and go.
Args: endpoint_id: Target endpoint ID (uses default if omitted) show_all: If true, show all containers including stopped ones name_filter: Only return containers whose name contains this substring (server-side Docker filter) stack_filter: Only return containers belonging to this stack (Swarm namespace or Compose project label, exact match)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| show_all | No | ||
| endpoint_id | No | ||
| name_filter | No | ||
| stack_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |