Design
Convertir valores de color HSV a formato HEX para diseño web
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/hsv-to-hex-converter' \
-H 'Content-Type: application/json' \
-d '{"hsv":"Enter HSV values, one per line:\nhsv(0,100%,100%)\nhsva(0,100%,100%,0.5)\nhsb(0,100%,100%)\nhsba(0,100%,100%,0.5)\n0,100,100\n0,100,100,0.5\nH:0 S:100% V:100%\nH:0 S:100% V:100% A:0.5\nH:0 S:100% B:100%\nH:0 S:100% B:100% A:0.5","format":"hash"}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/hsv-to-hex-converter| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| hsv | textarea | Sí | — |
| format | select | Sí | — |
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-hsv-to-hex-converter": {
"name": "hsv-to-hex-converter",
"description": "Convertir valores de color HSV a formato HEX para diseño web",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=hsv-to-hex-converter",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "hsv-to-hex-converter",
"arguments": {
"hsv": "Enter HSV values, one per line:\nhsv(0,100%,100%)\nhsva(0,100%,100%,0.5)\nhsb(0,100%,100%)\nhsba(0,100%,100%,0.5)\n0,100,100\n0,100,100,0.5\nH:0 S:100% V:100%\nH:0 S:100% V:100% A:0.5\nH:0 S:100% B:100%\nH:0 S:100% B:100% A:0.5",
"format": "hash"
}
}
}¿Dudas o problemas? Contacta con [email protected]