stream_container_logs
Retrieve stdout and stderr logs from a Docker container for debugging. Filter by time, keyword, or number of recent lines.
Instructions
Fetch stdout/stderr logs from a Docker container by ID or name.
Args:
container_id: Container ID or name.
tail: Number of lines to fetch from the end of the logs.
since: Optional ISO 8601 timestamp; only return logs after this time.
filter_keyword: Optional substring; only return lines containing it.
Returns:
dict with container_id, log_lines, line_count, truncated.
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": "stream_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | Yes | ||
| tail | No | ||
| since | No | ||
| filter_keyword | No |