Elysia Tools Docs
ES
Idioma
ZHESPTRUFRDEEN
Volver al sitio
Explorar herramientas

Development

REPL de JSONPath interactivo

Un REPL interactivo de JSONPath que ejecuta pipelines de consulta de varios pasos sobre cualquier JSON. Escribe una expresión JSONPath por línea (p. ej. $..book[?(@.price<10)] luego $[0:5]) y verás los matches de cada paso con conteos, rutas y valores — más una URL compartible que codifica tus datos y pipeline. Soporta descenso recursivo ($..), comodines ([*]), filtros ([?(@.price<10)]), slices ([0:5:2]) e índices negativos.

html· Resultado HTMLAbrir herramienta

Inicio rápido

Llama a esta herramienta desde tu código en tres lenguajes.

cURL
curl -X POST 'https://api.elysiatools.com/es/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. Documentación para desarrolladores.

Volver al sitioExplorar herramientas

Referencia de la API

Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.

Endpoint

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

Parámetros

NombreTipoObligatorioDescripción
jsontextareaSí—
pipelinetextareaSí—
modeselectNo—
maxResultsnumberNo—
historyTitletextNoOptional label saved with this query so you can find it again.

Formato de respuesta

Resultado HTML

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

Integración MCP

Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.

Configuración del servidor

Añade este bloque a la configuración de tu cliente MCP:

mcp.json
{
  "mcpServers": {
    "elysiatools-jsonpath-repl-playground": {
      "name": "jsonpath-repl-playground",
      "description": "Un REPL interactivo de JSONPath que ejecuta pipelines de consulta de varios pasos sobre cualquier JSON. Escribe una expresión JSONPath por línea (p. ej. $..book[?(@.price<10)] luego $[0:5]) y verás los matches de cada paso con conteos, rutas y valores — más una URL compartible que codifica tus datos y pipeline. Soporta descenso recursivo ($..), comodines ([*]), filtros ([?(@.price<10)]), slices ([0:5:2]) e índices negativos.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=jsonpath-repl-playground",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

Listar herramientas disponibles

Tras conectar al endpoint SSE, lista las herramientas expuestas:

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

Llamar a esta herramienta

Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:

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"
}
  }
}
Encadena varias herramientas en una sesión con una lista toolId separada por comas, p. ej. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (máx. 20).

¿Dudas o problemas? Contacta con [email protected]

Explorar herramientas
Abrir herramienta