Open a Network File
open_network_fileLoads a Cisco Packet Tracer .pkt or .pka file by absolute path and returns the result code; warns that it replaces the current network, so confirm before opening.
Instructions
Open a .pkt (network) or .pka (activity) file. Returns Packet Tracer's result code.
CRITICAL: Replaces the open network; unsaved changes may be lost. Confirm with the user first.
Examples:
"Open ~/labs/ospf.pkt"
"Load the activity file I downloaded"
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": {
"path": "<path>"
},
"name": "open_network_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a .pkt/.pka file on the Packet Tracer host |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |