Document Tools
Simula sellos tipo REVIEWED/CONFIDENTIAL en PDF
Llama a esta herramienta desde tu código en tres lenguajes.
# 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/es/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'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/pdf-stamp-annotations| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| inputPdf | filesubida requerida | Sí | — |
| scope | select | No | — |
| customPages | text | No | — |
| textPreset | select | No | — |
| customText | text | No | — |
| position | select | No | — |
| style | select | No | — |
| stampColor | color | No | — |
| rotateDeg | number | No | — |
| opacity | number | No | — |
| margin | number | No | — |
| withDate | checkbox | No | — |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-pdf-stamp-annotations": {
"name": "pdf-stamp-annotations",
"description": "Simula sellos tipo REVIEWED/CONFIDENTIAL en PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-stamp-annotations",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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
}
}
}¿Dudas o problemas? Contacta con [email protected]