json_to_xml
Convert JSON objects into well-formed XML, with options for custom root element, attribute conversion, and XML declaration.
Instructions
Convert a JSON object to well-formed XML. Supports custom root element, attribute conversion, and XML declaration toggle.
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": {
"json": "<json>"
},
"name": "json_to_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON content to convert (must be an object) | |
| pretty | No | Pretty-print XML output (default: true) | |
| root_element | No | Root element name (default: "root") | |
| xml_declaration | No | Include XML declaration header (default: true) |