Format Conversion
Преобразует текст в/из двоичных битовых строк, используя кодировку ASCII (7-bit) или UTF-8 (8-bit)
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/text-to-binary' \
-H 'Content-Type: application/json' \
-d '{"inputText":"Enter text or binary bit string...","operation":"encode","encoding":"utf-8","bitsPerChar":"8","separator":"space","padToByte":true}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/text-to-binary| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| inputText | textarea | Да | — |
| operation | select | Да | — |
| encoding | select | Нет | — |
| bitsPerChar | select | Нет | — |
| separator | select | Нет | — |
| padToByte |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-text-to-binary": {
"name": "text-to-binary",
"description": "Преобразует текст в/из двоичных битовых строк, используя кодировку ASCII (7-bit) или UTF-8 (8-bit)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-to-binary",
"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": "text-to-binary",
"arguments": {
"inputText": "Enter text or binary bit string...",
"operation": "encode",
"encoding": "utf-8",
"bitsPerChar": "8",
"separator": "space",
"padToByte": true
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| checkbox |
| Нет |
| — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}