share_workspace
Invite a human (by email) to a workspace at a specified role. If the email already belongs to a Dock user they're added immediately and a notification email is sent; if not, a 7-day invite token is minted that auto-accepts on magic-link sign-in. Editor role required on the workspace. Emits member.joined (existing user) or member.invited (new user). Use update_workspace_member to change a role afterwards, remove_workspace_member to revoke.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role to grant. Defaults to `editor`. Owner-tier transitions require an owner caller. | |
| slug | Yes | The workspace slug. Accepts either the bare slug ('my-workspace') or the org-prefixed form ('my-org/my-workspace') as shown in the dashboard URL; both resolve to the same workspace. | |
| Yes | Email address of the human to invite. |