team_grant_scope
Assign or remove a team member from a named group to control which group-scoped lessons appear in smart recall. Only admins can perform this action.
Instructions
Add or remove a team member to/from a named group (sub-team) on a shared brain. Group-scoped lessons (stored with group="...") only surface in smart_recall for members of that group (and admins). This is team-level visibility, orthogonal to lesson-level private. Admin-gated after the role model is bootstrapped. Example: team_grant_scope(handle="alice", group="security", assigned_by="bob") — bob must be admin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | Group/sub-team name (e.g. "backend", "security", "platform") | |
| action | No | add (default) or remove the member from the group | |
| handle | Yes | Handle of the team member to add/remove | |
| assigned_by | No | Handle of the admin performing the change (required after governance bootstrap) | |
| instance_id | Yes | UUID of the shared team brain instance |