Extract specific fields from JSON files efficiently using jq instead of reading entire files, saving 80-95% context.
Extract specific fields from large JSON files using jq instead of reading entire files, saving 80-95% context. Use when querying package.json, config files, or API responses for particular values rather than understanding overall structure.
/plugin marketplace add xdg/xdg-claude/plugin install context-efficient-tools@xdg-claudeThis skill inherits all available tools. When active, it can use any tool Claude has access to.
reference/jq-guide.mdUse jq to extract specific fields from JSON files without loading entire file contents into context.
Use jq when:
Just use Read when:
JSON files where jq excels:
# Get version from package.json
jq -r .version package.json
# Get nested dependency version
jq -r '.dependencies.react' package.json
# List all dependencies
jq -r '.dependencies | keys[]' package.json
Extract exactly what is needed in one command - massive context savings compared to reading entire files.
For comprehensive jq patterns, syntax, and examples, load jq guide: