Media
Planen Sie automatische Audioaufnahmen mit Countdown-Timer und einstellbarer Dauer
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
curl -X POST 'https://api.elysiatools.com/de/api/tools/audio-recorder-scheduled' \
-H 'Content-Type: application/json' \
-d '{"outputFormat":"webm","sampleRate":"44100","duration":30,"startDelay":5,"enableCountdown":true}'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/audio-recorder-scheduled| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| outputFormat | select | Nein | Audio format for the recorded file |
| sampleRate | select | Nein | Audio sample rate in Hz |
| duration | number | Nein | How long to record (5-3600 seconds) |
| startDelay | number | Nein | Countdown duration before recording starts (1-60 seconds) |
| enableCountdown | checkbox | Nein |
Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-audio-recorder-scheduled": {
"name": "audio-recorder-scheduled",
"description": "Planen Sie automatische Audioaufnahmen mit Countdown-Timer und einstellbarer Dauer",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=audio-recorder-scheduled",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-recorder-scheduled",
"arguments": {
"outputFormat": "webm",
"sampleRate": "44100",
"duration": 30,
"startDelay": 5,
"enableCountdown": true
}
}
}Fragen oder Probleme? Kontakt: [email protected]
| Show visual countdown before recording starts |
Interaktives Ergebnis
{
"result": "Initial display content",
"interactive": true,
"components": [
{
"type": "timer",
"id": "timer1",
"config": {
"label": "Countdown",
"duration": 60
}
}
],
"state": {
"key": "value"
},
"actions": [
{
"type": "start",
"id": "start-btn",
"label": "Start"
}
],
"styles": "/* Custom CSS */",
"scripts": "/* Client-side scripts */",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}