Design
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.
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)"}'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/webfont-pairing-lab| 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 |
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-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"
}
}
}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": "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)"
}
}
}| Body paragraph font-size in pixels. |
| lineHeight | number | Non | Unitless line-height for body text. 1.4–1.7 is the readable range. |
| headSample | text | Non | Optional custom heading text. Defaults to a neutral sample. |
| bodySample | textarea | Non | Optional custom body paragraph(s). Defaults to a neutral sample. |
Résultat HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Des questions ou un problème ? Contactez [email protected]