List Docker containers
nas_docker_containersList Docker containers with state, image, CPU and memory use, and published ports; filter by name, status, type, or update availability.
Instructions
List containers with their state, image, CPU and memory use, and published ports (data.result[]). This is the place to read a container's CPU and memory; mem_used is a string holding bytes. The status filter takes "running" or "stopped", while the status field in the response uses a different set (CONTAINER_DETAIL_STATUS_RUNNING, _EXITED, _RESTARTING, _UPDATING), so do not feed response values back into the filter. port_mappings is only filled for running containers, so an empty list does not prove that no ports are configured. Mounts, environment variables, restart policy, network mode and health checks cannot be read through this server; point the user to the Docker app on the NAS for those.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "nas_docker_containers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only containers whose name contains this text. | |
| type | No | Only app-center apps, plain containers, or Compose project containers. | |
| order | No | Sort direction. | |
| status | No | Only containers in these states. | |
| sort_by | No | Sort key. | |
| update_state | No | Filter by image update availability. |