Format Conversion
Convertit le format de fichier Properties Java en JSON
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/properties-to-json' \
-H 'Content-Type: application/json' \
-d '{"propertiesInput":"Enter properties content...\n\ndatabase.url=jdbc:mysql://localhost:3306/mydb\ndatabase.username=admin\ndatabase.password=secret","ignoreComments":true,"trimValues":true,"nestedStructure":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/properties-to-json| Nom | Type | Requis | Description |
|---|---|---|---|
| propertiesInput | textarea | Oui | — |
| ignoreComments | checkbox | Non | — |
| trimValues | checkbox | Non | — |
| nestedStructure | checkbox | Non | — |
Résultat texte
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}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-properties-to-json": {
"name": "properties-to-json",
"description": "Convertit le format de fichier Properties Java en JSON",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=properties-to-json",
"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": "properties-to-json",
"arguments": {
"propertiesInput": "Enter properties content...\n\ndatabase.url=jdbc:mysql://localhost:3306/mydb\ndatabase.username=admin\ndatabase.password=secret",
"ignoreComments": true,
"trimValues": true,
"nestedStructure": true
}
}
}Des questions ou un problème ? Contactez [email protected]