switch_user
Switch the active Spotify user profile for subsequent tool calls, using each user's token cache. Pass 'default' to return to the primary account.
Instructions
Switch the active Spotify user profile.
Updates the server's internal state so all subsequent tool calls use the
token cache for name. Each user's token lives in .cache-<name> in
the project root; pass "default" to return to the primary account.
Parameters
name : str
User profile name. Must have a corresponding cache file or be
"default".
Returns
dict
{"previous_user": str, "current_user": str}
Raises
ValueError
If name is blank or no token cache exists for that profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||