Convert local YAML and JSON files
abox_yaml_jsonConvert a local UTF-8 file between a supported YAML subset and JSON while preserving ordered values, duplicate keys, and large number tokens; writes and verifies a new .json or .yaml file.
Instructions
Convert a local UTF-8 file between the website-supported YAML subset and JSON. Preserves ordered values, duplicate keys and large number tokens; formatting, string escapes and comments may change. YAML anchors, aliases, custom tags and multiple documents are unsupported. Optional natural key sorting on YAML to JSON. Writes and verifies a new .json or .yaml/.yml file; no contents returned.
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>",
"direction": "<direction>"
},
"name": "abox_yaml_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indent | No | 2 | |
| direction | Yes | ||
| sort_keys | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |