{"ok":true,"result":{"slug":"xml-formatter","name":"XML Formatter","summary":"Validate XML, then pretty-print it with consistent indentation or minify it. Errors report the line and column.","description":"Pretty print, validate or minify XML in your browser. Choose the indentation, optionally strip comments, and see the line and column of any XML error.","method":"POST","endpoint":"/api/v1/tools/xml-formatter","plan":"free","mcpName":"xml_formatter","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The XML.","maxLength":200000},"mode":{"type":"string","description":"format (pretty-print) or minify.","default":"format","enum":["format","minify"],"maxLength":200000},"indent":{"type":"string","description":"Indentation when formatting: \"2\", \"4\" or \"tab\".","default":"2","enum":["2","4","tab"],"maxLength":200000},"stripComments":{"type":"boolean","description":"Remove <!-- comments -->.","default":false}},"required":["input"]},"example":{"input":"<catalog><book id=\"1\"><title>Dune</title><year>1965</year></book></catalog>"},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/xml-formatter","page":"https://pithlab.com/tools/xml-formatter"}}