get_console_logs
Retrieves recent console log lines by briefly connecting to a server WebSocket console and disconnecting cleanly, enabling log inspection without a persistent session.
Instructions
Connect briefly to the server WebSocket console, retrieve recent console output lines, and disconnect cleanly.
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": {
"server_id": "<server_id>"
},
"name": "get_console_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_lines | No | Maximum number of trailing log lines to return (default 100) | |
| server_id | Yes | Short server identifier | |
| strip_ansi | No | Strip ANSI terminal color sequences to reduce token usage (default true) | |
| timeout_ms | No | Maximum wait window in ms before disconnecting (default 2500) |