import_profile_state
Restore local Spotify sidecar stores from a profile-state archive, merging or overwriting data with optional dry-run preview and backups.
Instructions
Restore local sidecar stores from a profile-state archive. merge unions each store on its own keys and de-duplicates search_history by entry id; overwrite replaces each store, keeping a 0600 .bak of what it replaced. The mutation ledger (stores.mutations_history) is export-only: it is never appended to or replaced, and an archive carrying it is reported as skipped. dry_run reports the per-store plan and writes nothing. Refuses newer schema versions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | merge = union on each store's own keys; overwrite = replace, keeping a .bak | merge |
| dry_run | No | Preview only: validate inputs and describe exactly what would change without performing it | |
| input_path | Yes | Path to the profile-state archive JSON file | |
| response_format | No | 'concise' = human prose, 'detailed' = more fields in prose, 'json' = raw API object | concise |