Media
Editar o añadir etiquetas (artista, álbum, título, etc.)
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/audio-metadata-editor' \
-F 'file=@/path/to/audioFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/audio-metadata-editor' \
-F 'audioFile=/path/to/file.ext' \
-F 'artist=Artist name' \
-F 'album=Album name' \
-F 'title=Track title' \
-F 'genre=Género' \
-F 'year=2024' \
-F 'track=01' \
-F 'comment=Notes or comments' \
-F 'outputFormat=mp3'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/audio-metadata-editor| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| audioFile | filesubida requerida | Sí | — |
| artist | text | No | — |
| album | text | No | — |
| title | text | No | — |
| genre | text | No | — |
| year | text | No | — |
| track | text | No | — |
| comment | text | No | — |
| outputFormat | select | No | — |
Resultado de archivo
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}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-audio-metadata-editor": {
"name": "audio-metadata-editor",
"description": "Editar o añadir etiquetas (artista, álbum, título, etc.)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-metadata-editor",
"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": "audio-metadata-editor",
"arguments": {
"audioFile": "https://example.com/file.ext",
"artist": "Artist name",
"album": "Album name",
"title": "Track title",
"genre": "Género",
"year": "2024",
"track": "01",
"comment": "Notes or comments",
"outputFormat": "mp3"
}
}
}¿Dudas o problemas? Contacta con [email protected]