json_to_xml
Convert a JSON string to XML format for legacy systems, SOAP APIs, or configuration files. Specify an optional root element name.
Instructions
Convert a JSON string to XML format.
Use this when you need XML output from JSON data for legacy systems,
SOAP APIs, or configuration files.
Parameters:
json_str — The JSON string to convert.
root — Name of the root XML element (default: "root").
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_str": "<json_str>"
},
"name": "json_to_xml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json_str | Yes | ||
| root | No | root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |