pt_ui_mode
Switch Packet Tracer device-panel tools between headless background operation and UI mode so actions open and display the matching window or tab; check current mode with status.
Instructions
Headless vs UI: decides whether the device-panel tools also SHOW what they do in Packet Tracer's window.
"headless" (default): everything through the API, no window opens.
"ui": pt_cli, pt_host_command, pt_host_ip_config, pt_server_*... open the device's window on the matching tab/app (CLI, Desktop > Command Prompt, Desktop > IP Configuration, Services > DHCP...) so it can be watched or captured.
"status": shows the current mode.
The mode is saved and survives server restarts. Every tool also accepts show=True/False for a single call. Use it when the user says "show it in PT", "I want screenshots", "use the tabs" (→ "ui") or "do it in the background" (→ "headless").
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pt_ui_mode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | status |