convert_data
Convert structured data files between JSON, YAML, XML, TOML, CSV, TSV, Parquet, and Protocol Buffers, using .proto definitions for PB.
Instructions
结构化数据转换:JSON/YAML/XML/TOML/CSV/TSV/Parquet/Protocol Buffers(PB 需 .proto 定义)。
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_format": "<output_format>"
},
"name": "convert_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | ||
| input_path | Yes | 输入文件绝对路径 | |
| output_path | No | 输出文件路径(可选) | |
| output_format | Yes | 目标格式:json/yaml/xml/toml/csv/tsv/parquet/pb |