json_query
Extract a value from JSON text using a path like a.b[0].c or $.items[3].name. Distinguishes resolved from found and reports missing-key, out-of-range, not-an-array, or not-an-object.
Instructions
Extract a value from a JSON document by path, e.g. "a.b[0].c" or "$.items[3].name". Reports resolved (did the path reach a location) separately from found (is the value non-null), so absent is distinguishable from present-but-null. Failure types are specific: missing-key, out-of-range, not-an-array, not-an-object.
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": {
"json": "<json>",
"path": "<path>"
},
"name": "json_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The JSON document as text | |
| path | Yes | Path, e.g. "a.b[0].c" |