pt_cli
Runs Cisco IOS commands on Packet Tracer routers, switches, or ASAs, wrapping configuration lines in enable/configure mode or executing privileged commands and returning per-command status and output.
Instructions
Run IOS commands on a router/switch/ASA. With config_mode=True (default) the commands are wrapped in 'enable' / 'configure terminal' ... 'end', so pass only configuration lines, e.g. ['hostname R1', 'interface g0/0', 'ip address 192.168.1.1 255.255.255.0', 'no shutdown']. Set config_mode=False to run privileged-exec commands such as 'show ip interface brief' or 'copy run start'. Boot and the initial setup dialog are handled automatically. Returns per-command status (ok/invalid/incomplete/ambiguous) and output.
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>",
"commands": "<commands>"
},
"name": "pt_cli"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | Yes | ||
| commands | Yes | ||
| config_mode | No |