yaml_tool
Manage YAML, TOML, and JSON config files: query nested keys, set values, validate, convert, merge, and diff files with format auto-detection.
Instructions
YAML/TOML/JSON config file operations. Supports get (dot-notation query), set, delete, validate, convert between formats, merge, diff, keys, format. Auto-detects format from extension.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to config file | |
| limit | No | Limit number of keys shown (default: 50) | |
| query | No | Key path using dot notation (e.g., 'database.host') | |
| value | No | Value to set (any type) | |
| format | No | Force input format (auto-detected by default) | |
| indent | No | Indentation level (default: 2) | |
| output | No | Output file path (defaults to input file) | |
| strategy | No | Merge strategy (default: deep) | |
| compareTo | No | Second file path for diff operation | |
| mergeWith | No | Object to merge (inline) | |
| operation | Yes | YAML/TOML operation to perform | |
| outputFormat | No | Output format for convert operation | |
| mergeWithFile | No | Path to file to merge with |