Files
platform/seed/tasks/convert-to-mp3/TASK.md
T

51 lines
1.2 KiB
Markdown

---
name: Convert To MP3
description: Convert audio files to MP3 320kbps, preserving metadata.
version: 3
author: pastilhas
tags:
- audio
- conversion
skills:
- convert-audio-to-mp3
tools:
- convert_audio_to_mp3
trigger:
- type: file
extensions:
- flac
- wav
- ogg
- wma
- aac
- m4a
- opus
- aiff
- aif
- ape
- wv
- alac
- dsf
- dff
- type: directory
inputs:
- name: file_path
description: Path to an audio file or an artist directory to convert.
required: true
---
# Convert To MP3
Convert audio files to MP3 320kbps, preserving metadata.
## Important
- Do NOT explore, list, or inspect the target path before converting. The tool handles everything internally — file discovery, format detection, and error reporting.
- Do NOT use bash, ls, or any other tool. Only use `convert_audio_to_mp3`.
- Call the tool exactly once, then report the result. Nothing else.
## Steps
1. If `file_path` has an audio extension (flac, wav, ogg, etc.), call `convert_audio_to_mp3(mode="single", path=file_path)`. Otherwise call `convert_audio_to_mp3(mode="batch", path=file_path)`.
2. Print the tool's output as the final report. Do not add extra commentary.