Design
Предпросмотр пары Google Fonts (заголовок + текст) с настройкой веса и межстрочного, плюс готовый CSS-сниппет с @import и переменными. Кураторский список из 22 шрифтов и 7 проверенных пресетов.
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/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)"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/webfont-pairing-lab| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| headingFont | select | Нет | The display / heading typeface. |
| headingWeight | number | Нет | Snaps to the nearest available weight for the chosen font. |
| bodyFont | select | Нет | The body / paragraph typeface. |
| bodyWeight | number | Нет | Snaps to the nearest available weight for the chosen font. |
| bodySize | number | Нет |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-webfont-pairing-lab": {
"name": "webfont-pairing-lab",
"description": "Предпросмотр пары Google Fonts (заголовок + текст) с настройкой веса и межстрочного, плюс готовый CSS-сниппет с @import и переменными. Кураторский список из 22 шрифтов и 7 проверенных пресетов.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webfont-pairing-lab",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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 | Нет | Unitless line-height for body text. 1.4–1.7 is the readable range. |
| headSample | text | Нет | Optional custom heading text. Defaults to a neutral sample. |
| bodySample | textarea | Нет | Optional custom body paragraph(s). Defaults to a neutral sample. |
HTML-результат
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]