Text Processing
Удаляет HTML-теги и извлекает чистый текстовый контент
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/html-tag-stripper' \
-H 'Content-Type: application/json' \
-d '{"html":"Enter HTML content to clean (can include tags, entities, etc.)...","preserveWhitespace":false,"preserveLineBreaks":true,"decodeEntities":true,"removeScriptStyle":true,"customKeepTags":"e.g., br,p,strong (comma-separated)"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/html-tag-stripper| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| html | textarea | Да | — |
| preserveWhitespace | checkbox | Нет | Keep multiple spaces and formatting |
| preserveLineBreaks | checkbox | Нет | Keep paragraph and line break structure |
| decodeEntities | checkbox | Нет | Convert & < > etc. to their characters |
| removeScriptStyle | checkbox | Нет |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-html-tag-stripper": {
"name": "html-tag-stripper",
"description": "Удаляет HTML-теги и извлекает чистый текстовый контент",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=html-tag-stripper",
"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": "html-tag-stripper",
"arguments": {
"html": "Enter HTML content to clean (can include tags, entities, etc.)...",
"preserveWhitespace": false,
"preserveLineBreaks": true,
"decodeEntities": true,
"removeScriptStyle": true,
"customKeepTags": "e.g., br,p,strong (comma-separated)"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| Completely remove JavaScript and CSS content |
| customKeepTags | text | Нет | Tags to preserve (comma-separated tag names) |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}