data_json_to_xml
Convert JSON data to XML format, specifying an optional root element name. Transforms JSON strings into structured XML text.
Instructions
Convert a JSON object to an XML text string.
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": {
"jsonData": "<jsonData>"
},
"name": "data_json_to_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jsonData | Yes | The JSON string representation of the object to convert. | |
| rootName | No | Optional root element name. Defaults to 'root' if input is an array or string. | root |