pt_host_command
Runs a command in a PC or server Command Prompt inside Cisco Packet Tracer, such as ping, and returns after the command is entered in the live project.
Instructions
Type a command into a PC/server Command Prompt (e.g. 'ping 192.168.1.1'). Output is shown in Packet Tracer; the call returns once it is entered.
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": {
"device": "<device>",
"command": "<command>"
},
"name": "pt_host_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| command | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |