Design
Pré-visualize uma combinação de Google Fonts (título + corpo) com controles de peso e entrelinha, e copie um snippet CSS @import + variáveis pronto para colar. Registro curado de 22 fontes e 7 presets.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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)"}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/webfont-pairing-lab| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| headingFont | select | Não | The display / heading typeface. |
| headingWeight | number | Não | Snaps to the nearest available weight for the chosen font. |
| bodyFont | select | Não | The body / paragraph typeface. |
| bodyWeight | number | Não | Snaps to the nearest available weight for the chosen font. |
| bodySize | number | Não |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-webfont-pairing-lab": {
"name": "webfont-pairing-lab",
"description": "Pré-visualize uma combinação de Google Fonts (título + corpo) com controles de peso e entrelinha, e copie um snippet CSS @import + variáveis pronto para colar. Registro curado de 22 fontes e 7 presets.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webfont-pairing-lab",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"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 | Não | Unitless line-height for body text. 1.4–1.7 is the readable range. |
| headSample | text | Não | Optional custom heading text. Defaults to a neutral sample. |
| bodySample | textarea | Não | Optional custom body paragraph(s). Defaults to a neutral sample. |
Resultado HTML
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Dúvidas ou problemas? Contate [email protected]