set_account_access
Give a person or a role access to one account, change the level, or remove it (access_right 'none'). Levels: read (see), write (also send / change / file), manage (also change credentials and hand out access). The owner always has full access and cannot be assigned. For a runner, resource_id is the user id of the person whose runner it is. For an agent (resource_type 'agent'), resource_id is the agent id: read or more lets that person or role see and use the agent (same as the team page, 'Account access', kind Agent). Name exactly one target: user_id (a person), role (fixed role admin/planner/viewer/caller) or tenant_role_id (a web role). Tenant admin, or someone with manage on that account (for an agent also its creator).
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_type": "<resource_type>",
"resource_id": "<resource_id>",
"access_right": "<access_right>"
},
"name": "set_account_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Fixed role to grant access to (instead of user_id or tenant_role_id) | |
| user_id | No | ID of the user | |
| resource_id | Yes | ID of the resource | |
| access_right | Yes | Access level; none removes the access | |
| resource_type | Yes | Type of the account access is granted to | |
| tenant_role_id | No | ID of the tenant role |