PDF Tools
Anade una firma visible de texto o imagen a un PDF y descarga el archivo
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/pdf-add-signature-online' \
-H 'Content-Type: application/json' \
-d '{"filename":"pdfFile.ext","contentType":"application/octet-stream","size":12345}'
curl -X POST 'https://api.elysiatools.com/api/upload/presign/pdf-add-signature-online' \
-H 'Content-Type: application/json' \
-d '{"filename":"signatureImage.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/es/api/tools/pdf-add-signature-online' \
-F 'pdfFile=/public/samples/pdf/sample.pdf' \
-F 'signatureType=text' \
-F 'signatureImage=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'signatureText=Approved' \
-F 'reason=Review complete' \
-F 'location=' \
-F 'includeDate=true' \
-F 'pageTarget=last' \
-F 'pageNumber=1' \
-F 'position=bottom-right' \
-F 'customX=36' \
-F 'customY=36' \
-F 'boxWidth=180' \
-F 'boxHeight=72' \
-F 'signatureColor=#1f2937'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-add-signature-online| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| pdfFile | filesubida requerida | Sí | — |
| signatureType | select | No | — |
| signatureImage | filesubida requerida | No | — |
| signatureText | text | No | — |
| reason | text | No | — |
| location | text | No | — |
| includeDate | checkbox | No | — |
| pageTarget | select | No | — |
| pageNumber | number | No | — |
| position | select | No | — |
| customX | number | No | — |
| customY | number | No | — |
| boxWidth | number | No | — |
| boxHeight | number | No | — |
| signatureColor | color | 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-add-signature-online": {
"name": "pdf-add-signature-online",
"description": "Anade una firma visible de texto o imagen a un PDF y descarga el archivo",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-add-signature-online",
"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-add-signature-online",
"arguments": {
"pdfFile": "/public/samples/pdf/sample.pdf",
"signatureType": "text",
"signatureImage": "https://example.com/file.ext",
"signatureText": "Approved",
"reason": "Review complete",
"location": "",
"includeDate": true,
"pageTarget": "last",
"pageNumber": 1,
"position": "bottom-right",
"customX": 36,
"customY": 36,
"boxWidth": 180,
"boxHeight": 72,
"signatureColor": "#1f2937"
}
}
}¿Dudas o problemas? Contacta con [email protected]