wpf_snapshot
Capture a subtree snapshot of a WPF element's layout metrics, visibility, and brushes for later comparison with a diff tool. Use before/after workflow to detect changes.
Instructions
Capture a snapshot of an element's subtree (layout metrics, visibility, alignment, brushes, text) and store it under a label, to diff later with wpf_diff. Workflow: wpf_snapshot(label='before') → make a change (e.g. wpf_set_property) → wpf_snapshot(label='after') → wpf_diff('before','after') to see exactly what moved. element_handle sets the subtree root (omit for the whole main window); max_depth default 25. Returns the label and how many elements were captured.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wpf_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | ||
| max_depth | No | ||
| element_handle | No |