Docker service logs
docker_swarm_service_logsFetch Docker Swarm service logs by service name, optionally limiting tail lines or targeting a named context, to troubleshoot workloads and inspect runtime output.
Instructions
Fetch service logs (real service.logs via :meth:service_logs).
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": {
"service_name": "<service_name>"
},
"name": "docker_swarm_service_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| tail_lines | No | ||
| service_name | Yes |