Query JSON
json_queryQuery JSON from a URL or inline string using JSONPath-lite syntax to extract specific values, array items, or filtered fields instead of parsing the entire document manually.
Instructions
Free, read-only. JSONPath-lite query on JSON from a URL or an inline string (one of the two). Returns matches as JSON: one match bare, several as an array. Supports $, .key, ['key'], [0], [-1], [*], ..key and [?(@.k op v)]; no slices or jq. Errors on invalid JSON or over 5 MB (json_query_xl: paid, 25 MB).
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": {
"query": "<query>"
},
"name": "json_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | JSON URL, max 5 MB. Not with json. | |
| json | No | Inline JSON text. Not with url. | |
| limit | No | Default 100, max 1000. Above it: {results,total,returned}. | |
| query | Yes | Starts with $: '$.users[*].name', '$..price', '$.items[?(@.price<10)].id'. Filter ops: = != > >= < <= =~. '$' = whole document. | |
| headers | No | Headers to forward (Authorization, Cookie…). |