with one click
tree
// Get the visual tree structure of the running WPF application. Use this skill when asked to inspect, debug, or understand the element hierarchy, control structure, or layout of the WPF UI.
// Get the visual tree structure of the running WPF application. Use this skill when asked to inspect, debug, or understand the element hierarchy, control structure, or layout of the WPF UI.
Restart the WPF application to apply code or XAML changes. Use this skill when you need to restart the app after making changes, or when the UI needs to be refreshed because WPF hot reload is limited.
Capture a screenshot of the running WPF application UI. Use this skill when asked to see, view, capture, or screenshot the current state of the WPF application's user interface.
| name | tree |
| description | Get the visual tree structure of the running WPF application. Use this skill when asked to inspect, debug, or understand the element hierarchy, control structure, or layout of the WPF UI. |
This skill retrieves the complete WPF visual tree as JSON, showing all UI elements, their types, names, and hierarchy.
Use this skill when:
The WPF application must be running with the VibeServer extension. Start it with:
cd MyWpfApp
dotnet watch run
Run the script from the repository root:
.\.github\skills\vibe-tree\get-tree.ps1
Returns a JSON representation of the visual tree with:
Button, TextBlock, Grid)Example output:
{
"Type": "MainWindow",
"Name": "mainWindow",
"Children": [
{
"Type": "Grid",
"Name": "rootGrid",
"Children": [...]
}
]
}
Use this skill alongside vibe-screenshot to: