Standalone tool to generate ready-to-import Magentic UI plan JSON files from templates.
Uses {{PLACEHOLDER}} syntax — no dependencies on the Magentic UI codebase.
plan-editor-tool/
├── plan_editor.py # Main script (Python 3.8+, no pip deps)
├── templates/
│ └── app_validation_template.json # Example template
├── output/ # Generated plans download here
└── README.md
cd "C:\Magentic UI- CUA\plan-editor-tool"
# 1. List available templates
python plan_editor.py --list-templates
# 2. See what placeholders a template needs
python plan_editor.py --list-vars templates/app_validation_template.json
# 3a. Interactive mode (prompts for each value)
python plan_editor.py --interactive templates/app_validation_template.json
# 3b. CLI mode (pass values directly)
python plan_editor.py --template templates/app_validation_template.json ^
--var VALIDATION_ID=2482446 ^
--var APP_NAME="Contoso App" ^
--output output/plan_2482446.jsonTemplates use {{PLACEHOLDER_NAME}} syntax. Built-in defaults:
| Placeholder | Default | Description |
|---|---|---|
ADO_ORG_URL |
https://domoreexp.visualstudio.com |
Azure DevOps org URL |
ADO_PROJECT |
MSTeams |
ADO project name |
VALIDATION_ID |
(required) | App Validation work item ID |
APP_NAME |
(required) | Application name |
You can add any custom {{CUSTOM_VAR}} to your templates.
- Copy
templates/app_validation_template.json - Edit steps as needed, using
{{PLACEHOLDER}}for dynamic values - Supported step fields:
title(string) — step headingdetails(string) — full instructions for the agentagent_name— one of:web_surfer,coder_agent,file_surfer,user_proxyenabled(boolean) — include in execution
- Save as
templates/your_template.json
- Run the tool → JSON saved in
output/ - Open Magentic UI → Saved Plans panel
- Click Import (upload icon) → select the JSON file
- Plan appears in the list, ready to use