pt_activity_set_instructions
Writes custom HTML into the first instruction page of a Packet Tracer activity using the Wizard's Import Page, then reads it back to confirm the content is preserved.
Instructions
Writes the HTML of the first instruction page, with the Wizard open.
Goes through Import Page (a temporary file and PT's file dialog), the only way PT keeps the HTML, and reads it back with getInstructionSource(0). Reply: html_preserved, identical (apart from whitespace).
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": {
"html": "<html>"
},
"name": "pt_activity_set_instructions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |