Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Development

JSONPath REPL Playground

An interactive JSONPath REPL that runs multi-step query pipelines against any JSON. Write one JSONPath expression per line (e.g. $..book[?(@.price<10)] then $[0:5]) and see each step's matches with counts, paths, and values — plus a shareable URL that encodes your data and pipeline. Supports recursive descent ($..), wildcards ([*]), filters ([?(@.price<10)]), slices ([0:5:2]), and negative indices.

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/jsonpath-repl-playground' \
  -H 'Content-Type: application/json' \
  -d '{"json":"{\n  \"store\": {\n    \"book\": [\n      { \"category\": \"reference\", \"author\": \"Nigel Rees\", \"title\": \"Sayings of the Century\", \"price\": 8.95 },\n      { \"category\": \"fiction\", \"author\": \"Evelyn Waugh\", \"title\": \"Sword of Honour\", \"price\": 12.99 },\n      { \"category\": \"fiction\", \"author\": \"Herman Melville\", \"title\": \"Moby Dick\", \"price\": 8.99 },\n      { \"category\": \"fiction\", \"author\": \"J. R. R. Tolkien\", \"title\": \"The Lord of the Rings\", \"price\": 22.99 }\n    ],\n    \"bicycle\": { \"color\": \"red\", \"price\": 19.95 }\n  }\n}","pipeline":"$..book[?(@.price < 10)]\n$[*].title","mode":"values","maxResults":100,"historyTitle":"Cheap books — titles"}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/jsonpath-repl-playground

Parameters

NameTypeRequiredDescription
jsontextareaYes—
pipelinetextareaYes—
modeselectNo—
maxResultsnumberNo—
historyTitletextNoOptional label saved with this query so you can find it again.

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-jsonpath-repl-playground": {
      "name": "jsonpath-repl-playground",
      "description": "An interactive JSONPath REPL that runs multi-step query pipelines against any JSON. Write one JSONPath expression per line (e.g. $..book[?(@.price<10)] then $[0:5]) and see each step's matches with counts, paths, and values — plus a shareable URL that encodes your data and pipeline. Supports recursive descent ($..), wildcards ([*]), filters ([?(@.price<10)]), slices ([0:5:2]), and negative indices.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=jsonpath-repl-playground",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "jsonpath-repl-playground",
    "arguments": {
  "json": "{\n  \"store\": {\n    \"book\": [\n      { \"category\": \"reference\", \"author\": \"Nigel Rees\", \"title\": \"Sayings of the Century\", \"price\": 8.95 },\n      { \"category\": \"fiction\", \"author\": \"Evelyn Waugh\", \"title\": \"Sword of Honour\", \"price\": 12.99 },\n      { \"category\": \"fiction\", \"author\": \"Herman Melville\", \"title\": \"Moby Dick\", \"price\": 8.99 },\n      { \"category\": \"fiction\", \"author\": \"J. R. R. Tolkien\", \"title\": \"The Lord of the Rings\", \"price\": 22.99 }\n    ],\n    \"bicycle\": { \"color\": \"red\", \"price\": 19.95 }\n  }\n}",
  "pipeline": "$..book[?(@.price < 10)]\n$[*].title",
  "mode": "values",
  "maxResults": 100,
  "historyTitle": "Cheap books — titles"
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool