tomlquery
Query TOML files using dot-notation paths to extract specific values without loading the entire file. Access nested keys, array indices, and wildcards efficiently.
Instructions
Query a TOML 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: "dependencies.react", "tool.poetry.name", "servers[0].host", "servers[].role". Returns the matched value with its type. Objects and arrays are pretty-printed as JSON. Use this to extract specific values from large TOML files to save tokens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Absolute path to the TOML file | |
| path | No | Alias for file_path | |
| query | Yes | Dot-notation query path (e.g. dependencies.react, tool.poetry.name, servers[0].host) |