Skip to content

manage_collaborator

Invite, change the role of, or cancel a pending invite for a model collaborator. Requires Owner role on the model for every action. action selects the operation and which other fields are required: ‘invite’ takes email (and optional role, default ‘viewer’ — Requires Pro plan); ‘set_role’ takes target_user_id and role, and cannot demote the only model owner; ‘cancel_invite’ takes invite_id, the grant_id returned by a prior ‘invite’ call.

NameTypeRequiredDefaultDescription
model_nameAnnotated[str, Field(description='Name of the Bridge Town model. Caller must have Owner role.')]Yes
actionAnnotated[Literal['invite', 'set_role', 'cancel_invite'], Field(description='Which collaborator action to perform: invite, set_role, or cancel_invite.')]Yes
email`Annotated[strNone, Field(description=“Email address of the user to invite. Required for action=‘invite’.”)]`NoNone
role`Annotated[Literal[‘owner’, ‘editor’, ‘viewer’]None, Field(description=“Model role to grant. Required for action=‘set_role’; optional for action=‘invite’ (default: viewer).”)]`NoNone
target_user_id`Annotated[strNone, Field(description=“UUID of the collaborator whose role to change. Required for action=‘set_role’.”)]`NoNone
invite_id`Annotated[strNone, Field(description=“UUID of the pending invite to cancel. Required for action=‘cancel_invite’.”)]`NoNone
workspace_id`Annotated[strNone, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]`NoNone

Returns a structured object. Top-level fields:

  • grant_id (string)
  • model (string)
  • action (string)
  • email (string)
  • role (string)
  • pending (boolean)
  • workspace_invite (string)

See the response example below for the full payload shape.

{
"name": "manage_collaborator",
"arguments": {
"model_name": "forecasts",
"action": "invite",
"email": "carol@example.com",
"role": "editor"
}
}
{
"grant_id": "99999999-9999-9999-9999-999999999999",
"model": "forecasts",
"action": "invite",
"email": "carol@example.com",
"role": "editor",
"pending": true,
"workspace_invite": "created"
}
  • Module: Collaborators
  • Requires authentication via API token or Auth0 JWT.