utilpeek: convert data between JSON, YAML, CSV, TOML and XML
convert_dataConvert JSON, YAML, CSV, TOML, or XML input to JSON, YAML, CSV, or TOML for config files, API payloads, and datasets, rejecting lossy or unsafe conversions.
Instructions
utilpeek: Convert data between JSON, YAML, CSV, TOML and XML. To check JSON against a schema use validate_json. Returns the document converted from json, yaml, csv, toml or xml to json, yaml, csv or toml. YAML uses libyaml's restricted loader (alias bombs refused); XML with DTDs or entities is a 422 xml_forbidden; lossy conversions are a 422 (not_tabular, not_representable, ...) rather than silently changed. CSV values stay strings; dates become ISO strings (native dates in TOML). Parsed in an isolated, resource-limited child process without network; input over its limits is a 422 (not charged). Typically under 1 s, up to a few seconds for 1 MB. Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. The submitted text is never logged or stored. Docs: https://tanod.dev/learn/convert-data-formats-api.html
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output format: json, yaml, csv or toml. | |
| from | Yes | Input format: json, yaml, csv, toml or xml. | |
| input | Yes | The document as a string (at most 1 MB UTF-8). | |
| indent | No | JSON output indentation (0 = compact, default 2). | |
| delimiter | No | CSV delimiter (input and output). | , |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| output | No | ||
| source | No | ||
| output_bytes | No |