docker_fetch_container_logs
Fetch logs from a Docker container by ID or name with an optional tail limit, enabling debugging and monitoring of recent output.
Instructions
Fetch logs for a Docker container
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": {
"container_id": "<container_id>"
},
"name": "docker_fetch_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of lines to show from the end | |
| container_id | Yes | Container ID or name |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||