Document Tools
Applique des filigranes texte/forme au niveau document ou page
Appelez cet outil depuis votre code en trois langages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/pdf-watermark-tool' \
-H 'Content-Type: application/json' \
-d '{"filename":"inputPdf.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/fr/api/tools/pdf-watermark-tool' \
-F 'inputPdf=/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-11-source-2pages.pdf' \
-F 'mode=document' \
-F 'pageSelection=1,3,5-7' \
-F 'watermarkType=text' \
-F 'watermarkText=CONFIDENTIAL' \
-F 'shapeType=rectangle' \
-F 'rotateDeg=-30' \
-F 'opacity=0.2' \
-F 'fontSize=48' \
-F 'watermarkColor=#D93838' \
-F 'tile=true'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/pdf-watermark-tool| Nom | Type | Requis | Description |
|---|---|---|---|
| inputPdf | fileupload requis | Oui | — |
| mode | select | Non | — |
| pageSelection | text | Non | — |
| watermarkType | select | Non | — |
| watermarkText | text | Non | — |
| shapeType | select | Non | — |
| rotateDeg | number | Non | — |
| opacity | number | Non | — |
| fontSize | number | Non | — |
| watermarkColor | color | Non | — |
| tile | checkbox | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-pdf-watermark-tool": {
"name": "pdf-watermark-tool",
"description": "Applique des filigranes texte/forme au niveau document ou page",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-watermark-tool",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-watermark-tool",
"arguments": {
"inputPdf": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-11-source-2pages.pdf",
"mode": "document",
"pageSelection": "1,3,5-7",
"watermarkType": "text",
"watermarkText": "CONFIDENTIAL",
"shapeType": "rectangle",
"rotateDeg": -30,
"opacity": 0.2,
"fontSize": 48,
"watermarkColor": "#D93838",
"tile": true
}
}
}Des questions ou un problème ? Contactez [email protected]