Media
Редактировать или добавить теги (исполнитель, альбом, название и т.д.)
Вызовите этот инструмент из своего кода на трёх языках.
# 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/ru/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=Жанр' \
-F 'year=2024' \
-F 'track=01' \
-F 'comment=Notes or comments' \
-F 'outputFormat=mp3'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/audio-metadata-editor| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| audioFile | fileнужна загрузка | Да | — |
| artist | text | Нет | — |
| album | text | Нет | — |
| title | text | Нет | — |
| genre | text | Нет | — |
| year | text | Нет | — |
| track | text | Нет | — |
| comment | text | Нет | — |
| outputFormat | select | Нет | — |
Файловый результат
{
"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)"
}Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-audio-metadata-editor": {
"name": "audio-metadata-editor",
"description": "Редактировать или добавить теги (исполнитель, альбом, название и т.д.)",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-metadata-editor",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"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": "Жанр",
"year": "2024",
"track": "01",
"comment": "Notes or comments",
"outputFormat": "mp3"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]