assign_permission_set
Assign a permission set to ONE person (user_id), a ROLE (role) or an AGENT (agent_id), or remove it (remove=true). A person with own sets gets only those — the role's sets no longer apply to them. An agent's sets apply to EVERY call the agent makes, on top of the person's (strictest wins) — so work handed to an agent via delegate_task cannot escape the lock. Admins only.
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": {
"set_id": "<set_id>"
},
"name": "assign_permission_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Role to assign the set to (instead of user_id or agent_id) | |
| remove | No | true removes the assignment instead of adding it | |
| set_id | Yes | ID of the set | |
| user_id | No | ID of the user | |
| agent_id | No | ID of the agent |