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"。
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": {
"path": "<path>"
},
"name": "read_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_nodes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||