Development
Fragt beliebiges JSON mit JSONPath ab, zeigt Treffer an, wechselt Ausgabeformate und speichert wiederverwendbare Abfragevorlagen
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/api/tools/jsonpath-query-tool' \
-H 'Content-Type: application/json' \
-d '{"jsonInput":"{ \"store\": { \"book\": [{ \"author\": \"Nigel Rees\" }, { \"author\": \"Evelyn Waugh\" }] } }","expression":"$.store.book[*].author","outputFormat":"json","maxMatches":20,"saveTemplate":true,"templateName":"Book authors"}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/jsonpath-query-tool| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| jsonInput | textarea | Ja | — |
| expression | text | Ja | — |
| outputFormat | select | Nein | — |
| maxMatches | number | Nein | — |
| saveTemplate | checkbox | Nein | — |
| templateName |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-jsonpath-query-tool": {
"name": "jsonpath-query-tool",
"description": "Fragt beliebiges JSON mit JSONPath ab, zeigt Treffer an, wechselt Ausgabeformate und speichert wiederverwendbare Abfragevorlagen",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=jsonpath-query-tool",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "jsonpath-query-tool",
"arguments": {
"jsonInput": "{ \"store\": { \"book\": [{ \"author\": \"Nigel Rees\" }, { \"author\": \"Evelyn Waugh\" }] } }",
"expression": "$.store.book[*].author",
"outputFormat": "json",
"maxMatches": 20,
"saveTemplate": true,
"templateName": "Book authors"
}
}
}| text |
| Nein |
| — |
HTML-Ergebnis
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Fragen oder Probleme? Kontakt: [email protected]