Design
Visualize uma combinação de fontes para título e corpo com texto real, tamanhos, pesos, alturas de linha, caracteres e CSS.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/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}'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/font-pairing-preview-card| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| headingFont | text | Sim | — |
| bodyFont | text | Sim | — |
| sampleText | textarea | Sim | — |
| language | select | Não | — |
| headingSize | number | Não | — |
| bodySize |
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-font-pairing-preview-card": {
"name": "font-pairing-preview-card",
"description": "Visualize uma combinação de fontes para título e corpo com texto real, tamanhos, pesos, alturas de linha, caracteres e CSS.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=font-pairing-preview-card",
"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": "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 |
| Não |
| — |
| headingWeight | number | Não | — |
| bodyWeight | number | Não | — |
| headingLineHeight | number | Não | — |
| bodyLineHeight | number | Não | — |
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]