Format Conversion
Convertit entre les formats CSV et Protocol Buffers (Protobuf)
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/csv-to-protobuf' \
-H 'Content-Type: application/json' \
-d '{"operation":"csv-to-protobuf","inputData":"Enter CSV data or Protobuf data...","delimiter":",","hasHeader":true,"outputFormat":"hex","schema":"Enter .proto schema or JSON descriptor (optional)..."}'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/csv-to-protobuf| Nom | Type | Requis | Description |
|---|---|---|---|
| operation | select | Non | — |
| inputData | textarea | Oui | — |
| delimiter | text | Non | — |
| hasHeader | checkbox | Non | — |
| outputFormat | select | Non | — |
| schema |
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-csv-to-protobuf": {
"name": "csv-to-protobuf",
"description": "Convertit entre les formats CSV et Protocol Buffers (Protobuf)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=csv-to-protobuf",
"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": "csv-to-protobuf",
"arguments": {
"operation": "csv-to-protobuf",
"inputData": "Enter CSV data or Protobuf data...",
"delimiter": ",",
"hasHeader": true,
"outputFormat": "hex",
"schema": "Enter .proto schema or JSON descriptor (optional)..."
}
}
}Des questions ou un problème ? Contactez [email protected]
| textarea |
| Non |
| — |
Résultat JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}