json_to_yaml
Convert JSON objects to YAML for Kubernetes, Docker Compose, and CI/CD configs. Set indentation and inline depth to control the output format.
Instructions
Convert a JSON object to YAML format. Useful for generating Kubernetes configs, Docker Compose files, and CI/CD pipeline definitions from JSON data.
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": {
"json": "<json>"
},
"name": "json_to_yaml"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON content to convert | |
| indent | No | Indentation spaces: 2, 4, or 8 (default: 2) | |
| inline_level | No | Depth for inline notation (default: 10, higher = more expanded) |