jq
Run jq filter expressions on JSON files from allowed directories. Specify file path and query to extract or transform data.
Instructions
Runs a jq query against a JSON file, gated by an allowlist of directories.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file": "<file>",
"query": "<query>"
},
"name": "jq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the JSON file (absolute, or resolved against cwd). | |
| query | Yes | A jq filter expression. |