Document Tools
Genere des certificats PDF depuis CSV
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-certificates-batch' \
-H 'Content-Type: application/json' \
-d '{"csvContent":"name,date,course,score\nAlice Zhang,2026-02-01,TS Bootcamp,98\nBob Chen,2026-02-01,TS Bootcamp,95","certificateTitle":"Certificate of Achievement","organizationName":"Elysia Academy","awardText":"This certifies that","signatoryName":"Program Director","signatureLabel":"Authorized Signature","datePrefix":"Date:","nameField":"name","dateField":"date","courseField":"course","scoreField":"score","themeColor":"#1d4ed8","pageSize":"A4","landscape":false,"waitUntil":"networkidle0","waitTime":0}'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-certificates-batch| Nom | Type | Requis | Description |
|---|---|---|---|
| csvContent | textarea | Oui | — |
| certificateTitle | text | Non | — |
| organizationName | text | Non | — |
| awardText | text | Non | — |
| signatoryName | text | Non | — |
| signatureLabel | text | Non | — |
| datePrefix | text | Non | — |
| nameField | text | Non | — |
| dateField | text | Non | — |
| courseField | text | Non | — |
| scoreField | text | Non | — |
| themeColor | color | Non | — |
| pageSize | select | Non | — |
| landscape | checkbox | Non | — |
| waitUntil | select | Non | — |
| waitTime | number | 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-certificates-batch": {
"name": "pdf-certificates-batch",
"description": "Genere des certificats PDF depuis CSV",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-certificates-batch",
"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-certificates-batch",
"arguments": {
"csvContent": "name,date,course,score\nAlice Zhang,2026-02-01,TS Bootcamp,98\nBob Chen,2026-02-01,TS Bootcamp,95",
"certificateTitle": "Certificate of Achievement",
"organizationName": "Elysia Academy",
"awardText": "This certifies that",
"signatoryName": "Program Director",
"signatureLabel": "Authorized Signature",
"datePrefix": "Date:",
"nameField": "name",
"dateField": "date",
"courseField": "course",
"scoreField": "score",
"themeColor": "#1d4ed8",
"pageSize": "A4",
"landscape": false,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}Des questions ou un problème ? Contactez [email protected]