Register workspace alias
register_workspace_aliasLink a new URI to an existing workspace record when the repository path changes due to move, rename, or mount.
Instructions
Purpose: Link a moved or renamed workspace URI to an existing workspace record. When to use: call when the same repository appears under a new local path, mount point, or machine-specific URI. Inputs: workspace_id_or_uri selects the existing workspace; alias_uri is the new URI; reason and metadata document why it changed. Side effects: writes an alias row. Output: alias record details. Failure modes: fails if the referenced workspace cannot be resolved or the alias conflicts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Short reason such as moved, renamed, cloned, or mounted. | moved |
| metadata | No | Optional JSON metadata explaining source machine, remote, or migration context. | |
| alias_uri | Yes | New root URI or path alias that should resolve to the workspace. | |
| workspace_id_or_uri | Yes | Existing workspace UUID, root URI, or alias URI to attach the alias to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||