Format Conversion
Convertit le texte vers/depuis des chaînes de bits binaires en utilisant un encodage ASCII (7-bit) ou UTF-8 (8-bit)
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/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}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/text-to-binary| Nom | Type | Requis | Description |
|---|---|---|---|
| inputText | textarea | Oui | — |
| operation | select | Oui | — |
| encoding | select | Non | — |
| bitsPerChar | select | Non | — |
| separator | select | Non | — |
| padToByte |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-text-to-binary": {
"name": "text-to-binary",
"description": "Convertit le texte vers/depuis des chaînes de bits binaires en utilisant un encodage ASCII (7-bit) ou UTF-8 (8-bit)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=text-to-binary",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"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
}
}
}Des questions ou un problème ? Contactez [email protected]
| checkbox |
| Non |
| — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}