Document Tools
Genere un guide de marque avec logo, palette, typo et espacements
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-brand-guidelines-pdf' \
-F 'file=@/path/to/logoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/pdf-brand-guidelines-pdf' \
-F 'brandName=Northwind Atelier' \
-F 'tagline=Editorial craft for modern products' \
-F 'logoFile=/public/logo.png' \
-F 'primaryColor=#1247A6' \
-F 'secondaryColor=#1B998B' \
-F 'accentColor=#F46036' \
-F 'neutralColor=#EAF0F7' \
-F 'headingFont=Montserrat' \
-F 'bodyFont=Source Sans Pro' \
-F 'baseSpacing=8' \
-F 'pageSize=A4' \
-F 'landscape=false' \
-F 'waitUntil=networkidle0' \
-F 'waitTime=600'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-brand-guidelines-pdf| Nom | Type | Requis | Description |
|---|---|---|---|
| brandName | text | Oui | — |
| tagline | text | Non | — |
| logoFile | fileupload requis | Non | — |
| primaryColor | color | Non | — |
| secondaryColor | color | Non | — |
| accentColor | color | Non | — |
| neutralColor | color | Non | — |
| headingFont | text | Non | — |
| bodyFont | text | Non | — |
| baseSpacing | number | 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-brand-guidelines-pdf": {
"name": "pdf-brand-guidelines-pdf",
"description": "Genere un guide de marque avec logo, palette, typo et espacements",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pdf-brand-guidelines-pdf",
"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-brand-guidelines-pdf",
"arguments": {
"brandName": "Northwind Atelier",
"tagline": "Editorial craft for modern products",
"logoFile": "/public/logo.png",
"primaryColor": "#1247A6",
"secondaryColor": "#1B998B",
"accentColor": "#F46036",
"neutralColor": "#EAF0F7",
"headingFont": "Montserrat",
"bodyFont": "Source Sans Pro",
"baseSpacing": 8,
"pageSize": "A4",
"landscape": false,
"waitUntil": "networkidle0",
"waitTime": 600
}
}
}Des questions ou un problème ? Contactez [email protected]