yq YAML processor
yqQuery and transform YAML files using yq expressions, returning compact structured JSON output instead of reading the entire file.
Instructions
Query and transform YAML files using yq expressions (mikefarah/yq). Outputs as JSON for structured consumption. Far more compact than reading a full YAML file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Path to a YAML file | |
| input | No | Raw YAML string to process (alternative to file) | |
| expression | No | yq expression (default: '.') | . |
| outputFormat | No | Output format (default: 'json' for structured output) | json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| result | Yes | ||
| retained | No |