← All changes
|
modules/mcp/static-resources/abilities/build-composition.md
+1
-0
4.3.0
→
4.3.3
View file →
| @@ -41,8 +41,9 @@ | ||
| 41 | 41 | - Use widget tags: `<e-button configuration-id="btn1"></e-button>` |
| 42 | 42 | - Containers: "e-flexbox", "e-div-block", "e-tabs" |
| 43 | 43 | - **Every element MUST have a unique "configuration-id" attribute** |
| 44 | 44 | - No attributes, classes, IDs, or text nodes in XML |
| 45 | +- Multiple root elements are allowed. Every opening tag needs exactly one matching closing tag (or use a self-closing tag); a stray or missing closing tag fails the whole call with `invalid_xml`, even on `dry_run` | |
| 45 | 46 | - Pass the raw XML tags directly as the `xml_structure` string. Do NOT wrap the value in `<![CDATA[ ... ]]>`, code fences, quotes, or any other wrapper — JSON string escaping is the only escaping needed. Wrapping in CDATA turns the whole payload into text and the tool will reject it with `empty_composition`. |
| 46 | 47 | |
| 47 | 48 | ## NESTED ELEMENTS |
| 48 | 49 | Some elements have internal tree structures (nesting). When using these elements, you MUST build the FULL tree in XML. |