Turn a capability on or off for an access role
set_access_role_capabilitySwitch one of the eight capabilities on or off for an access role in a workspace you own — it reaches everyone who follows the role at once. Capabilities: readMail (Read my email), sendMail (Send email on my behalf), manageSheets (Work with my spreadsheets), readFiles (Read and edit my files), shareFiles (Share files with people I name), manageTasks (Manage my tasks), draftReplies (Draft replies for me), manageCalendar (Manage my calendar). This only stages a request: the owner opens the link in their browser, reviews it, and approves it there with their agent PIN. Never ask for or accept the PIN in chat.
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": {
"role": "<role>",
"capability": "<capability>",
"enabled": "<enabled>"
},
"name": "set_access_role_capability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The access role's name. | |
| enabled | Yes | true to allow, false to refuse. | |
| workspace | No | Which workspace, by name or id. Only needed when you own more than one — list_workspaces shows them. | |
| capability | Yes | Which capability. |