Development
Генерирует XML-карты сайта для поисковых систем с настраиваемыми опциями
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/sitemap-generator' \
-H 'Content-Type: application/json' \
-d '{"urls":"https://example.com/\nhttps://example.com/about\nhttps://example.com/contact","baseUrl":"https://example.com","priority":"0.5","changeFreq":"weekly","lastMod":"Select last modified date...","format":"xml","includeSchema":true,"includeComments":true,"urlList":"https://example.com/page1, https://example.com/page2"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/sitemap-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| urls | textarea | Нет | — |
| baseUrl | text | Нет | — |
| priority | select | Нет | — |
| changeFreq | select | Нет | — |
| lastMod | date | Нет | — |
| format |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-sitemap-generator": {
"name": "sitemap-generator",
"description": "Генерирует XML-карты сайта для поисковых систем с настраиваемыми опциями",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=sitemap-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": "sitemap-generator",
"arguments": {
"urls": "https://example.com/\nhttps://example.com/about\nhttps://example.com/contact",
"baseUrl": "https://example.com",
"priority": "0.5",
"changeFreq": "weekly",
"lastMod": "Select last modified date...",
"format": "xml",
"includeSchema": true,
"includeComments": true,
"urlList": "https://example.com/page1, https://example.com/page2"
}
}
}| select |
| Нет |
| — |
| includeSchema | checkbox | Нет | — |
| includeComments | checkbox | Нет | — |
| urlList | textarea | Нет | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]