Development
Генерирует мета-теги Open Graph для обмена в социальных сетях и богатых сниппетов
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/open-graph-generator' \
-H 'Content-Type: application/json' \
-d '{"title":"Enter page title...","description":"Enter page description (recommended: 150-200 characters)","url":"https://example.com/page","imageUrl":"https://example.com/image.jpg (recommended: 1200x630px)","type":"website","siteName":"Your Website Name","locale":"en_US","includeTwitterCard":true,"twitterUsername":"@yourusername (without @)","includeFacebook":true,"includeLinkedIn":false,"includeBasicMeta":true,"additionalProperties":"key:value, key:value (e.g., og:audio:audio.mp3, article:published_time:2024-01-01)"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/open-graph-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| title | text | Да | — |
| description | textarea | Нет | — |
| url | text | Нет | — |
| imageUrl | text | Нет | — |
| type | select | Нет | — |
| siteName | text | Нет | — |
| locale | text | Нет | — |
| includeTwitterCard | checkbox | Нет | — |
| twitterUsername | text | Нет | — |
| includeFacebook | checkbox | Нет | — |
| includeLinkedIn | checkbox | Нет | — |
| includeBasicMeta | checkbox | Нет | — |
| additionalProperties | textarea | Нет | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-open-graph-generator": {
"name": "open-graph-generator",
"description": "Генерирует мета-теги Open Graph для обмена в социальных сетях и богатых сниппетов",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=open-graph-generator",
"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": "open-graph-generator",
"arguments": {
"title": "Enter page title...",
"description": "Enter page description (recommended: 150-200 characters)",
"url": "https://example.com/page",
"imageUrl": "https://example.com/image.jpg (recommended: 1200x630px)",
"type": "website",
"siteName": "Your Website Name",
"locale": "en_US",
"includeTwitterCard": true,
"twitterUsername": "@yourusername (without @)",
"includeFacebook": true,
"includeLinkedIn": false,
"includeBasicMeta": true,
"additionalProperties": "key:value, key:value (e.g., og:audio:audio.mp3, article:published_time:2024-01-01)"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]