container_logs
Retrieve and stream WSL container logs, with options to tail lines, follow output, filter by time range, and show timestamps.
Instructions
View logs from a WSL 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": {
"containerId": "<containerId>"
},
"name": "container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of lines to show from the end | |
| since | No | Show logs since timestamp (Unix epoch seconds or RFC3339, e.g. 2024-01-15T10:30:00Z) | |
| until | No | Show logs until timestamp (Unix epoch seconds or RFC3339, e.g. 2024-01-15T10:30:00Z) | |
| follow | No | Follow log output (streaming) | |
| timestamps | No | Show timestamps in log output | |
| containerId | Yes | Container ID or name |