{"uid":"cap_Nle0AvvRKFbgwRxlQkNye","slug":"agent402-tools-xml-to-json-workflow-f27257ef","name":"agent402.tools XML-to-JSON Workflow","description":"Bundled execution of the XML to JSON workflow — Convert XML to JSON and pretty-print it — the 'legacy API response to modern format' workflow in one call. One x402 payment runs 3 underlying tools (xml-to-json, json-format, json-validate); partial-...","url":"https://agent402.tools/api/skill/xml-json","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"xml":{"type":"string","description":"XML string to convert"}}},"responseSchema":{"type":"json","example":{"args":{"xml":"<root><item>hello</item></root>"},"pack":"xml-json","steps":[{"ok":true,"slug":"xml-to-json","result":{}},{"ok":true,"slug":"json-format","result":{}},{"ok":true,"slug":"json-validate","result":{}}],"summary":"3/3 steps succeeded"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JHYXDZq1fcEAs31hzi13L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an XML string to formatted, validated JSON in a single bundled call (runs xml-to-json, json-format, and json-validate under the hood)","exampleAgentPrompt":"Take this XML string and convert it to clean, pretty-printed JSON for me: '<catalog><book id=\"1\"><title>XML Developer Guide</title><price>44.95</price></book></catalog>'","exampleUseCases":null,"resultDescription":"A formatted, pretty-printed JSON representation of the submitted XML, along with validation status confirming the output is well-formed JSON — all produced in a single bundled call that runs three underlying tools (xml-to-json, json-format, json-validate).","failureModes":["Malformed or invalid XML input causes a parsing error","Extremely large XML payloads may time out or be rejected","XML with namespaces or mixed content may produce unexpected JSON structure","Payment failure (x402) prevents execution entirely","Partial execution not possible — all three sub-tools run atomically or fail"],"whenToPreferThis":"Choose this endpoint when you need to convert legacy XML API responses or data feeds to modern JSON format in a single call, and you also want the output to be pretty-printed and validated — saving you from chaining three separate tool calls. Ideal for agents integrating with SOAP or older REST services that still return XML.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:10:59.575Z","isFirstParty":false}