share_resource_endpoint
Shares a workspace resource with a user or group by granting a role such as admin, editor, commenter, or viewer.
Instructions
Share Workspace Resource
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": {
"resource_id": "<resource_id>",
"role": "<role>",
"resource_type": "<resource_type>"
},
"name": "share_resource_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role to grant to the target: one of 'admin', 'editor', 'commenter', or 'viewer'. | |
| group_id | No | ||
| user_email | No | ||
| resource_id | Yes | The ID of the target resource. | |
| resource_type | Yes | Resource types that can be shared in the workspace. The name always need to match the collection names | |
| workspace_api_key_id | No |