wpf_evaluate_binding
Evaluate a WPF dependency property to determine why it has its current value, tracing binding paths step-by-step to identify null intermediates or misspelled properties.
Instructions
Explain WHY a property has its current value — the go-to tool for 'why is X empty/wrong/disabled?'. Reports the value source (Local, Style, Binding, Inherited, Default, ...), the effective value, and whether it's animated/coerced. When the value comes from a binding, it also resolves the binding path hop-by-hop against the source (DataContext / ElementName / RelativeSource / Source) and reports each segment's value and type, pinpointing exactly where a broken binding fails (e.g. a null intermediate, or a misspelled property that doesn't exist on the DataContext type). Complements wpf_get_bindings (which lists bindings) by actually evaluating one.
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": {
"element_handle": "<element_handle>",
"property_name": "<property_name>"
},
"name": "wpf_evaluate_binding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property_name | Yes | ||
| element_handle | Yes |