paperclip_update_workspace
Update a workspace's working directory or repository URL to reflect changes in project configuration.
Instructions
Update a workspace's cwd or repoUrl.
Args:
projectId: string — Project UUID (example: "prj_abc123")
workspaceId: string — Workspace UUID (example: "wsp_abc123")
cwd: string (optional) — New local working directory path
repoUrl: string (optional) — New remote repository URL
Returns: Returns the updated workspace object: id, cwd, repoUrl, projectId, updatedAt.
Examples:
Use when: updating the workspace path after the repo was moved to a new location
Don't use when: you need to create a new workspace — use paperclip_create_workspace instead
Error Handling:
401: authentication failed → check PAPERCLIP_API_KEY
404: project or workspace not found → verify IDs with paperclip_list_workspaces
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project UUID | |
| workspaceId | Yes | Workspace UUID | |
| cwd | No | New local working directory path | |
| repoUrl | No | New remote repository URL |