pt_cli
Execute Cisco IOS CLI commands on Packet Tracer routers, switches, and ASAs in configuration or privileged EXEC mode, with optional write memory to save changes.
Instructions
Run IOS commands on a router/switch/ASA. mode=config: lines are entered from global config (sub-modes like 'interface g0/0' work, 'end' is added); the reply lists only failing lines. mode=exec: privileged EXEC, returns output (prefer pt_show). save=true appends 'write memory'.
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 |
|---|---|---|---|
| mode | No | config | |
| save | No | ||
| device | Yes | ||
| commands | Yes |