convert_data
utilpeek: Convert data between JSON, YAML, CSV, TOML and XML. To check JSON against a schema use validate_json. Returns converted text. XML groups children by tag and joins text by default. For XML to JSON, set preserve_xml_order: true to keep text and child elements in order. Optional: delimiter, indent, preserve_xml_order.. CSV skips one leading BOM; values stay strings. Dates: ISO strings or native TOML dates. XML DTDs and entities are refused. YAML aliases are bounded; the loader can collapse equivalent keys. 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
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": {
"input": "<input>",
"from": "<from>",
"to": "<to>"
},
"name": "convert_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Output format. | |
| from | Yes | Input format. | |
| input | Yes | Document, up to 1 MB UTF-8. | |
| indent | No | JSON indent; 0 for compact. | |
| delimiter | No | CSV delimiter. | , |
| preserve_xml_order | No | Keep text and child order (XML to JSON only). |
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 |