paperclip_create_workspace
Create a workspace for a project by providing the project UUID and optionally a local directory or remote repository URL.
Instructions
Create a new workspace for a project. At least one of cwd or repoUrl is required.
Args:
projectId: string — Project UUID (example: "prj_abc123")
cwd: string (optional) — Local working directory path (example: "/home/user/repo")
repoUrl: string (optional) — Remote repository URL (example: "https://github.com/org/repo")
Returns: Returns the created workspace object: id, cwd, repoUrl, projectId, createdAt.
Examples:
Use when: adding a second workspace (e.g. a different branch or clone) to an existing project
Don't use when: you are creating a project — use paperclip_create_project with the workspace field instead
Error Handling:
400: validation failure → must provide at least one of cwd or repoUrl
401: authentication failed → check PAPERCLIP_API_KEY
404: project not found → verify ID with paperclip_list_projects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project UUID | |
| cwd | No | Local working directory path | |
| repoUrl | No | Remote repository URL |