Get Console Log for a Device
get_console_logRetrieve a device's console or terminal buffer to inspect boot messages, syslog events, and recent command output for troubleshooting.
Instructions
Return the device's console/terminal buffer as shown in its CLI tab (or the PC's Command Prompt): boot messages, %LINK/%LINEPROTO and other syslog messages, and recent command output.
Examples:
"Show R1's console messages"
"Did any interface go down on the switch?"
"What happened on PC1's command prompt?"
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": {
"name": "<name>"
},
"name": "get_console_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Device display name as shown in Packet Tracer (e.g. 'Router0', 'PC1') | |
| max_chars | No | Return at most this many trailing characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |