Preview XSLT patches
xslt_previewRun a Bannerlord module's merge and XSLT pipeline to see before/after diffs for target objects and catch XSLT errors that break loading.
Instructions
Runs the game's merge + XSLT pipeline (System.Xml XslCompiledTransform, like the game) for a module and shows before/after diffs of every object its XSLT rules target (or only targets). Also reveals XSLT errors that would break loading.
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": {
"module": "<module>"
},
"name": "xslt_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | Yes | Module whose XSLT to preview (any module, read-only is fine). | |
| xml_id | No | Limit to one XmlName id, e.g. Items. | |
| targets | No | Specific objects to diff, e.g. Item.x or Culture.empire (default: everything the rules target). | |
| game_type | No | Game type (default Campaign). |