json_query
Extract specific values from JSON strings using dot-and-index paths, or retrieve a structural summary when no path is given. Use it to pull only needed fields from API responses.
Instructions
JSON 文字列から path 指定で値を抜き出す(jq-lite)。path は 'data.items[0].name' のようなドット + [索引] 記法。paths に複数渡すと各々を抜く。path 省略時は構造の概要(トップのキー一覧や配列長)を返す。API レスポンスの必要な一片だけ取り出す用途。
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_text": "<json_text>"
},
"name": "json_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 抜き出す path(例: a.b[0].c)。任意。 | |
| paths | No | 複数 path をまとめて抜く。任意。 | |
| json_text | Yes | 対象の JSON 文字列。 |