Design
Previsualiza una combinación de fuentes para título y cuerpo con texto real, tamaños, pesos, interlineado, caracteres y CSS.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/font-pairing-preview-card' \
-H 'Content-Type: application/json' \
-d '{"headingFont":"Fraunces, Georgia, serif","bodyFont":"Inter, system-ui, sans-serif","sampleText":"Design systems should make the right choice easy.","language":"latin","headingSize":48,"bodySize":18,"headingWeight":700,"bodyWeight":400,"headingLineHeight":1.1,"bodyLineHeight":1.6}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/font-pairing-preview-card| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| headingFont | text | Sí | — |
| bodyFont | text | Sí | — |
| sampleText | textarea | Sí | — |
| language | select | No | — |
| headingSize | number | No | — |
| bodySize |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-font-pairing-preview-card": {
"name": "font-pairing-preview-card",
"description": "Previsualiza una combinación de fuentes para título y cuerpo con texto real, tamaños, pesos, interlineado, caracteres y CSS.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=font-pairing-preview-card",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "font-pairing-preview-card",
"arguments": {
"headingFont": "Fraunces, Georgia, serif",
"bodyFont": "Inter, system-ui, sans-serif",
"sampleText": "Design systems should make the right choice easy.",
"language": "latin",
"headingSize": 48,
"bodySize": 18,
"headingWeight": 700,
"bodyWeight": 400,
"headingLineHeight": 1.1,
"bodyLineHeight": 1.6
}
}
}| number |
| No |
| — |
| headingWeight | number | No | — |
| bodyWeight | number | No | — |
| headingLineHeight | number | No | — |
| bodyLineHeight | number | No | — |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}¿Dudas o problemas? Contacta con [email protected]