PDF Tools
Integre un ID/numero de serie quasi invisible dans un coin pour tracer la diffusion
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-usage-tracking-id' \
-F 'file=@/path/to/sourceFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-usage-tracking-id' \
-F 'sourceFile=/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf' \
-F 'idMode=timestamp-hash' \
-F 'customId=Required when mode = custom' \
-F 'includePageSerial=true' \
-F 'corner=bottom-right' \
-F 'opacity=0.01' \
-F 'fontSize=4' \
-F 'rotateDeg=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-usage-tracking-id| Nom | Type | Requis | Description |
|---|---|---|---|
| sourceFile | fileupload requis | Oui | — |
| idMode | select | Non | — |
| customId | text | Non | — |
| includePageSerial | checkbox | Non | — |
| corner | select | Non | — |
| opacity | number | Non | — |
| fontSize | number | Non | — |
| rotateDeg | 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-usage-tracking-id": {
"name": "pdf-usage-tracking-id",
"description": "Integre un ID/numero de serie quasi invisible dans un coin pour tracer la diffusion",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-usage-tracking-id",
"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-usage-tracking-id",
"arguments": {
"sourceFile": "/Users/quyue/www/elysia-tools/public/samples/pdf/pdf-2026-02-19-source-4pages.pdf",
"idMode": "timestamp-hash",
"customId": "Required when mode = custom",
"includePageSerial": true,
"corner": "bottom-right",
"opacity": 0.01,
"fontSize": 4,
"rotateDeg": 0
}
}
}Des questions ou un problème ? Contactez [email protected]