Skip to main content
← All tools

jq

Filter, inspect, and transform JSON

DataSchema v1.0.0Maintained by mcclowesAgent-validated

Give your agents the context

Install jq first. This command installs its capability description and registers your local executable. It doesn't install or run the tool.

clip registry add jq --purpose "Filter, inspect, and transform JSON"
clip sync

Coverage: Core JSON filtering. This is a partial community description, not a claim of full CLI Spec conformance. Missing mutation markers mean unknown.

Agent validation

This schema passed the repository evals against the real tool.

An agent (claude-sonnet-5, Claude Code 2.1.278) completed 4 of 4 read-only tasks with this schema and 4 of 4 without it, against jq-1.7.1-apple, on 2026-09-21. A schema can pass without adding anything the model didn't already know, so compare the two.

How validation works ↗

what's described

Capabilities

Read operation

jq <filter> [file...]

Apply a jq filter to JSON from files or stdin and write matching values to stdout.

jq --compact-output '.items[] | {name}' tools.json

Inspect the source

Review the schema's arguments and output fields before use. Community descriptions provide context, not authorization.

Full capability document
{
  "name": "jq",
  "version": "1.8",
  "description": "Transform and inspect JSON with jq. Partial community schema; jq uses a filter argument rather than subcommands.",
  "capabilities": [
    {
      "name": "<filter> [file...]",
      "description": "Apply a jq filter to JSON from files or stdin and write matching values to stdout.",
      "mutating": false,
      "args": [
        {
          "name": "filter",
          "type": "string",
          "required": true
        },
        {
          "name": "--compact-output",
          "type": "boolean",
          "default": false
        },
        {
          "name": "--raw-output",
          "type": "boolean",
          "default": false
        },
        {
          "name": "--slurp",
          "type": "boolean",
          "default": false
        },
        {
          "name": "--arg",
          "type": "string",
          "description": "Bind a named string variable; requires NAME VALUE."
        }
      ],
      "examples": [
        "jq --compact-output '.items[] | {name}' tools.json"
      ],
      "output_fields": [
        {
          "name": "stdout",
          "type": "string",
          "description": "A stream of JSON values, or raw strings when --raw-output is used."
        }
      ]
    }
  ]
}

View source and propose an update ↗

SHA-256: b935dc498002ba5e0be1d84a5f61ef7775155a6cca348e484077b39cf1e2ef84