Places album art files in the correct audio and content directory locations. Use when the user has generated or downloaded album artwork that needs to be saved.
Input: $ARGUMENTS
Import album art to both the audio folder and album content folder.
You copy album art to both required locations based on config.
Expected format: <file-path> <album-name>
Examples:
~/Downloads/album-art.jpg sample-album~/Downloads/cover.png sample-albumIf arguments are missing, ask:
Usage: /import-art <file-path> <album-name>
Example: /import-art ~/Downloads/album-art.jpg sample-album
find_album(album_name) — fuzzy match, returns album metadata including genreresolve_path("audio", album_slug) — returns audio directory pathresolve_path("content", album_slug) — returns content directory pathIf album not found:
Error: Album "{album-name}" not found.
Create it first with: /new-album {album-name} <genre>
TWO destinations required (paths from MCP resolve_path calls):
{audio_path}/album.png{content_path}/album-art.{ext}CRITICAL: resolve_path includes the artist folder automatically.
# Create audio directory (includes artist folder!)
mkdir -p {audio_root}/artists/{artist}/albums/{genre}/{album}
# Copy to audio folder as album.png
cp "{source_file}" "{audio_root}/artists/{artist}/albums/{genre}/{album}/album.png"
# Copy to content folder preserving extension
cp "{source_file}" "{content_root}/artists/{artist}/albums/{genre}/{album}/album-art.{ext}"
Report:
Album art imported for: {album-name}
Copied to:
1. {audio_root}/artists/{artist}/albums/{genre}/{album}/album.png (for platforms)
2. {content_root}/artists/{artist}/albums/{genre}/{album}/album-art.{ext} (for docs)
Source file doesn't exist:
Error: File not found: {source_file}
Config file missing:
Error: Config not found at ~/.bitwize-music/config.yaml
Run /configure to set up.
Album not found:
Error: Album "{album-name}" not found.
Create it first with: /new-album {album-name} <genre>
Not an image file:
Warning: File doesn't appear to be an image: {source_file}
Expected: .jpg, .jpeg, .png, .webp
Continue anyway? (y/n)
/import-art ~/Downloads/sample-album-cover.jpg sample-album
Config has: