pt_activity_open
Opens a .pka activity in Packet Tracer, replacing the currently open one. Supply the instructor password to unlock the API on protected activities.
Instructions
Opens a .pka activity in Packet Tracer; it replaces what is open.
Parameters:
path: full path to an existing .pka (relative = inside the working directory).
password: only for a protected activity, the instructor's password. It goes to PT's confirmPassword and is neither stored nor echoed. Without it a protected activity opens but its API stays locked.
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": "pt_activity_open"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| password | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |