Format Convert
format_convertConvert data between CSV, TSV, JSON, YAML and XML in one call (auto-detects the input format). CSV header handling and delimiter detection, type inference (numbers, booleans, null), nested objects flattened to dotted CSV columns, XML attributes as @keys and repeated elements as arrays, safe YAML subset (no anchors/tags), optional spreadsheet formula-injection guard. Body: {input, from, to, options}; 256 KB limit, clear errors with line numbers on malformed input. Price: $0.005 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/format-convert
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | csv, tsv, json, yaml or xml | |
| from | No | auto (default), csv, tsv, json, yaml, xml | |
| input | Yes | The document text (or, for JSON, the value itself) | |
| options | No | header (default true), inferTypes (true), pretty (true), delimiter (, ; | \t), rootName (root), itemName (item), flatten (true), spreadsheetSafe (false) |