Document Tools
Simule des tampons REVIEWED/CONFIDENTIAL sur PDF
Appelez cet outil depuis votre code en trois langages.
# 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/fr/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'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-stamp-annotations| Nom | Type | Requis | Description |
|---|---|---|---|
| inputPdf | fileupload requis | Oui | — |
| scope | select | Non | — |
| customPages | text | Non | — |
| textPreset | select | Non | — |
| customText | text | Non | — |
| position | select | Non | — |
| style | select | Non | — |
| stampColor | color | Non | — |
| rotateDeg | number | Non | — |
| opacity | number | Non | — |
| margin | number | Non | — |
| withDate | 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-stamp-annotations": {
"name": "pdf-stamp-annotations",
"description": "Simule des tampons REVIEWED/CONFIDENTIAL sur PDF",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-stamp-annotations",
"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-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
}
}
}Des questions ou un problème ? Contactez [email protected]