Convert Format
fc_convert_formatConverts files between JSON, CSV, INI, YAML, TOML, XML, and TOON formats, and pretty-prints or minifies JSON, so you can transform structured data without manual rewriting.
Instructions
Converts files between different formats.
Args:
input_path (string): Path to source file
output_path (string): Path to target file
input_format (string): "json" | "csv" | "ini" | "yaml" | "toml" | "xml" | "toon"
output_format (string): "json" | "csv" | "ini" | "yaml" | "toml" | "xml" | "toon"
json_indent (number, optional): JSON indentation (default: 2)
Supported conversions:
JSON <-> CSV (for arrays of objects)
JSON <-> INI (for flat objects/sections)
JSON <-> YAML
JSON <-> TOML
JSON <-> XML
JSON <-> TOON (hierarchical key-value format)
JSON pretty-print / minify
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_path": "<input_path>",
"output_path": "<output_path>",
"input_format": "<input_format>",
"output_format": "<output_format>"
},
"name": "fc_convert_format"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Source file | |
| json_indent | No | JSON indentation | |
| output_path | Yes | Target file | |
| input_format | Yes | Input format | |
| output_format | Yes | Output format |