read_xml
Parses XML files from the Noita game data directory into a nested dictionary for reading spell, entity, and config definitions, with node limits to control output size.
Instructions
把 XML 解析成嵌套字典返回。
属性直接平铺为键;同名子节点合并成数组;文本放在 "_text"。 max_nodes 限制节点总数,超出部分标记 "_truncated"。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_nodes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||