Document Tools
Genere un checklist PDF avec cases simulees
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-checklist-form' \
-H 'Content-Type: application/json' \
-d '{"title":"Site Inspection Checklist","subtitle":"Week 6 Review","checklistItems":"[x] Check safety signs\n[ ] Verify extinguisher\n[ ] Confirm exits\n[ ] Archive report","checkedIndexes":"2","columns":"1","showIndex":true,"showFooter":true,"pageSize":"A4","landscape":false,"printBackground":true,"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-checklist-form| Nom | Type | Requis | Description |
|---|---|---|---|
| title | text | Oui | — |
| subtitle | text | Non | — |
| checklistItems | textarea | Non | — |
| checkedIndexes | text | Non | — |
| columns | select | Non | — |
| showIndex |
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-checklist-form": {
"name": "pdf-checklist-form",
"description": "Genere un checklist PDF avec cases simulees",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-checklist-form",
"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-checklist-form",
"arguments": {
"title": "Site Inspection Checklist",
"subtitle": "Week 6 Review",
"checklistItems": "[x] Check safety signs\n[ ] Verify extinguisher\n[ ] Confirm exits\n[ ] Archive report",
"checkedIndexes": "2",
"columns": "1",
"showIndex": true,
"showFooter": true,
"pageSize": "A4",
"landscape": false,
"printBackground": true,
"waitUntil": "networkidle0",
"waitTime": 0
}
}
}| checkbox |
| Non |
| — |
| showFooter | checkbox | Non | — |
| pageSize | select | Non | — |
| landscape | checkbox | Non | — |
| printBackground | 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)"
}Des questions ou un problème ? Contactez [email protected]