Document Tools
Simuliert Stempel wie REVIEWED/CONFIDENTIAL auf PDF-Seiten
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/pdf-stamp-annotations' \
-F 'file=@/path/to/inputPdf.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/pdf-stamp-annotations' \
-F 'inputPdf=/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-11-source-2pages.pdf' \
-F 'scope=all' \
-F 'customPages=2,4,6-8' \
-F 'textPreset=reviewed' \
-F 'customText=LEGAL HOLD' \
-F 'position=top-right' \
-F 'style=outline' \
-F 'stampColor=#C73131' \
-F 'rotateDeg=-18' \
-F 'opacity=0.74' \
-F 'margin=28' \
-F 'withDate=true'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/pdf-stamp-annotations| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| inputPdf | fileUpload nötig | Ja | — |
| scope | select | Nein | — |
| customPages | text | Nein | — |
| textPreset | select | Nein | — |
| customText | text | Nein | — |
| position | select | Nein | — |
| style | select | Nein | — |
| stampColor | color | Nein | — |
| rotateDeg | number | Nein | — |
| opacity | number | Nein | — |
| margin | number | Nein | — |
| withDate | checkbox | Nein | — |
Dateiergebnis
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-pdf-stamp-annotations": {
"name": "pdf-stamp-annotations",
"description": "Simuliert Stempel wie REVIEWED/CONFIDENTIAL auf PDF-Seiten",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-stamp-annotations",
"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": "pdf-stamp-annotations",
"arguments": {
"inputPdf": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-11-source-2pages.pdf",
"scope": "all",
"customPages": "2,4,6-8",
"textPreset": "reviewed",
"customText": "LEGAL HOLD",
"position": "top-right",
"style": "outline",
"stampColor": "#C73131",
"rotateDeg": -18,
"opacity": 0.74,
"margin": 28,
"withDate": true
}
}
}Fragen oder Probleme? Kontakt: [email protected]