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.
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": "yq"
}
}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 |