get_container_logs
Retrieve Docker container logs by container ID or name, with an option to set the number of lines.
Instructions
Retrieve logs from a Docker container.
Args: container_id: Container ID or name lines: Number of log lines to retrieve (default: 50)
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": "get_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | ||
| lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |