yamlquery
Extract specific values from YAML files using dot-notation queries to save tokens without loading entire files into context.
Instructions
Query a YAML file using dot-notation paths without loading the entire file into context. Supports nested keys (a.b.c), array indices ([0], [-1] for last), and wildcards ([] for all elements). Examples: "services.web.ports[0]", "spec.containers[].image", "database.host". Returns the matched value with its type. Objects and arrays are pretty-printed as JSON. Use this to extract specific values from large YAML files to save tokens.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the YAML file | |
| query | Yes | Dot-notation query path (e.g. services.web.ports[0], spec.containers[*].image) |