wpf_revert_property
Reverts live property edits made with wpf_set_property, restoring prior bindings, local values, or defaults; target a specific edit by element and property or undo all pending edits.
Instructions
Undo live property edits made with wpf_set_property. By default reverts the most recent edit; pass element_handle and/or property_name to target a specific one, or all=true to undo every pending edit. Restores whatever held the property before (a binding, a local value, or nothing — falling back to style/inherited/default). Returns how many were reverted and how many edits remain pending. Target by exactly one of element_handle or automation_id (exact, case-sensitive AutomationProperties.AutomationId). Use root_handle with automation_id to scope lookup; missing or duplicate IDs fail before input.
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_revert_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| root_handle | No | ||
| automation_id | No | ||
| property_name | No | ||
| element_handle | No |