YAML ↔ JSON
yaml_jsonConvert a common YAML subset to JSON, or JSON to YAML.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "yaml_json"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | A JSON value to turn into YAML. Use this instead of text when you already have an object. | |
| text | No | The YAML text to convert to JSON, or the JSON text to convert to YAML. | |
| direction | No | Which way to convert: "to-json", "to-yaml", or "auto" (the default, which guesses). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| tool | Yes | ||
| result | Yes |