pt_activity_create_exam
Build a complete Packet Tracer exam from a spec, including instructions, answer/initial configs, marking, points, connectivity tests, and saving the .pka file.
Instructions
Builds a whole exam: create, build_answer, set_instructions, mark, points, connectivity, copy_to_initial, clear_initial, save, exit_wizard.
Parameters:
spec: title, situation, addressing [{device, interface, ip, mask, gateway}], requirements [{text, items, note}] (word = bold), language (es/en), items (paths for pt_activity_mark), plan or plan_path (the answer network), answer_commands and initial_commands ({device: [config lines]}, typed between configure terminal and end), points [{path, points}] (default 1 each; not on macOS), connectivity [{source, destination, reachable}] (ping tests PT grades; not on macOS), initial_hosts (hosts left with no address), output_path (.pka), overwrite.
start_at: step to resume from, after a failure.
force: passed to pt_activity_create.
dry_run: validate and render the HTML, sending nothing.
Reply: one entry per step, failed_step and how to retry.
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": {
"spec": "<spec>"
},
"name": "pt_activity_create_exam"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| force | No | ||
| dry_run | No | ||
| start_at | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |