Get Command History
get_command_historyRetrieve Packet Tracer terminal command history with timestamps, device names, and prompts to review lab steps, spot typos, or build command cheat sheets.
Instructions
Return Packet Tracer's command log: commands typed into device terminals (by a person in the CLI tab, or by send_terminal_command/verify_connectivity; send_cli_command and configure_device are not logged), with time, device and prompt (so the mode is visible, e.g. "R1(config-if)#"). Great for reviewing how a lab was solved, spotting a typo, or building a study sheet of the commands used. Most recent last.
Examples:
"What commands did I type on R1?"
"Make me a cheat sheet from the commands I used in this lab"
"Which command did I mistype?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only this device (display name); omit for all devices | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |