pull_workspace_version
Pulls a workspace version from a git repository or imports an existing version for rollback.
Instructions
Pull a workspace version from a git repository, or roll back/import an existing workspace version.
If the user asks to pull from git, you MUST pass gitPlatform (or repositoryId) — do not call this tool without one of these selectors. Omitting both is only valid when the caller explicitly wants to roll back/import an existing workspace version.
Selector choice:
gitPlatform— the default for pulling from git on Prisme.ai. Pass the platform repository id (key under the workspace'splatformRepositories). If you don't know the id, pass any plausible value; the tool will reject it and return the list of available platform repos so you can retry. Prefer this selector unless the user specifically names a workspace-level repo.repositoryId— only when the user explicitly references a repo declared on the workspace itself.
Response includes pulledFromGit: true|false — if false after a "pull from git" request, the call was wrong; retry with gitPlatform.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| versionId | Yes | Workspace version id/name to pull, such as a version name or branch/ref understood by the Prisme.ai API. | |
| environment | No | Optional environment name (from PRISME_ENVIRONMENTS) to use specific API URL and workspace | |
| gitPlatform | No | Platform-wide git repository id (key under `platformRepositories` on the workspace). **Pass this whenever the user asks to pull from git on Prisme.ai** — it is the primary selector for git pulls. If you don't know the exact id, pass your best guess; the tool validates it and returns the list of available platform repos so you can retry. Mutually exclusive with `repositoryId`. | |
| workspaceId | No | Alternative: direct workspace ID (use workspaceName instead when possible) | |
| repositoryId | No | Workspace-level repository id. Mutually exclusive with `gitPlatform`. Omit when rolling back/importing an existing workspace version. | |
| workspaceName | Yes | Workspace name that resolves to ID via PRISME_WORKSPACES or PRISME_ENVIRONMENTS mapping |