xml_load
Compile Panorama XML (and optional CSS) with CSDK and load it into the live UI (~2s).
Instructions
Compile Panorama XML (and optional CSS) with CSDK and load it into the live UI (~2s).
mode='append': create a child panel (id replaces any existing child with that id) under target.
mode='replace': load the layout into target itself, replacing its contents. Refused for the UI
root, the bridge panel (and its ancestors), and any panel whose type isn't plain Panel
(loading into a C++ panel crashes the game).
xml: a full ... layout or a bare fragment (wrapped automatically). Referenced
scripts/styles must exist in the game or the addon. css: real Panorama CSS (pseudo-classes,
animations, @define all work) compiled as this layout's stylesheet, included after the
layout's own so it wins ties.
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": {
"xml": "<xml>"
},
"name": "xml_load"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| ui | No | auto | |
| css | No | ||
| xml | Yes | ||
| mode | No | append | |
| target | No | root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |