get_track_file_path
Retrieve the file system path of a specific track by providing its unique track identifier in rekordbox DJ database. Access file path details for efficient track management and organization.
Instructions
Get the file system path for a specific track.
Args: track_id: The unique track identifier
Returns: Dictionary containing file path information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_id | Yes |
Implementation Reference
- rekordbox_mcp/server.py:206-227 (handler)The main handler function for the 'get_track_file_path' tool. It is decorated with @mcp.tool() which registers it with the FastMCP server. The function retrieves the track from the database using db.get_track_by_id(track_id), extracts the file_path from the Track model, and returns a dictionary containing track_id, file_path, and file_name.async def get_track_file_path(track_id: str) -> Dict[str, str]: """ Get the file system path for a specific track. Args: track_id: The unique track identifier Returns: Dictionary containing file path information """ if not db: raise RuntimeError("Database not initialized.") track = await db.get_track_by_id(track_id) if not track: raise ValueError(f"Track with ID {track_id} not found") return { "track_id": track_id, "file_path": track.file_path or "", "file_name": track.file_path.split("/")[-1] if track.file_path else "" }