Design
Laboratoire d'Association de Polices Web
Prévisualisez une association Google Fonts (titre + corps) avec contrôles de graisse et d'interligne, et copiez un snippet CSS @import + variables prêt à coller. Registre curatoriel de 22 polices et 7 presets.
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/webfont-pairing-lab' \
-H 'Content-Type: application/json' \
-d '{"headingFont":"Playfair Display","headingWeight":700,"bodyFont":"Inter","bodyWeight":400,"bodySize":16,"lineHeight":1.6,"headSample":"Custom heading text (optional)","bodySample":"Custom body text (optional)"}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
POST https://api.elysiatools.com/fr/api/tools/webfont-pairing-labParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| headingFont | select | Non | The display / heading typeface. |
| headingWeight | number | Non | Snaps to the nearest available weight for the chosen font. |
| bodyFont | select | Non | The body / paragraph typeface. |
| bodyWeight | number | Non | Snaps to the nearest available weight for the chosen font. |
| bodySize | number | Non |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-webfont-pairing-lab": {
"name": "webfont-pairing-lab",
"description": "Prévisualisez une association Google Fonts (titre + corps) avec contrôles de graisse et d'interligne, et copiez un snippet CSS @import + variables prêt à coller. Registre curatoriel de 22 polices et 7 presets.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webfont-pairing-lab",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
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": "webfont-pairing-lab",
"arguments": {
"headingFont": "Playfair Display",
"headingWeight": 700,
"bodyFont": "Inter",
"bodyWeight": 400,
"bodySize": 16,
"lineHeight": 1.6,
"headSample": "Custom heading text (optional)",
"bodySample": "Custom body text (optional)"
}
}
}