yaml_json
Convert YAML to JSON or JSON to YAML with automatic format detection. Specify direction for explicit control.
Instructions
Convert between YAML and JSON. Auto-detects input format or use direction param
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>"
},
"name": "yaml_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | YAML or JSON string to convert | |
| indent | No | Indent spaces (default: 2) | |
| direction | No | Conversion direction (default: auto-detect) |