Read container or project logs
nas_docker_logsFetch recent Docker logs from a NAS by container ID or Compose project name, returning the latest 200 entries for troubleshooting. Use it to inspect current container or combined project output.
Instructions
Fetch recent log output (data.logs, one multi-line string). target "container" takes the full container_id from nas_docker_containers and returns the latest 200 entries. target "project" takes a project_name from nas_docker_projects and returns the combined log of all its containers, 200 lines in total, possibly with ANSI colour codes. There is no way to get older lines, follow the log or filter by time; for that the user needs the Docker app on the NAS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"id": "<id>"
},
"name": "nas_docker_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Full container_id, or the Compose project_name. | |
| target | Yes | Whose log to read. |