code_workspace_add_collaborator
Add a collaborator to a workspace by specifying their email or user ID and assigning a role of viewer, editor, or admin.
Instructions
Add a collaborator to a workspace (role: viewer | editor | admin).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>"
},
"name": "code_workspace_add_collaborator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | viewer | |
| No | |||
| user_id | No | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |