modal_container_logs
Fetch logs for a specific container to debug issues or monitor output. Filter by source, time range, or tail count.
Instructions
Fetch logs for a specific 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": "modal_container_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Show only the last N log entries | |
| since | No | Start of time range (e.g. '1d', '2h') | |
| source | No | Filter by source: 'stdout', 'stderr', or 'system' | |
| containerId | Yes | ID of the container |