Take access away
access_revokeTake back access or a protection. Each takes effect on the next call of everyone it reaches. Actions — withdraw: withdraw an access request you filed (request_id). withdraw_share: take back a share made to another organization; it is gone from theirs (share_id). ungrant: take back a same-organization reach grant (subject_id from access_read action=who_can_read or browse action=people, role, location or node; subject_type user or group, default user; scope_type folder or document). Same authority as the console's Delete on Access: manager there, or editor for viewer/editor where editors may share. A missing grant answers revoked false. release_hold: release a legal hold, so what it covered can be erased again (hold_id). revoke_capability: take back a folder's own capability grant (location or node, target); the next credential asked for under it is refused, and those issued expire on their own. retire: end yourself or an identity below you and everything under it; what they owned passes to the nearest living ancestor and their drafts are purged. One below you first gets distill_window_s (default 3600) to publish.
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": {
"action": "<action>"
},
"name": "access_revoke"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ungrant: the document or folder, by id instead of location. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too. · revoke_capability: the folder, by id instead of location. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too. | |
| role | No | ungrant: default viewer. editor can also edit; manager (request only) can also share it, grant within it and decide requests for it. An approved request gives the role to everyone you work under who lacks it, too. Asking for a role you already hold, or one below it (manager implies editor, editor implies viewer), is refused. reader, writer and approver are deprecated aliases for viewer, editor and manager | |
| seat | No | the seat token identity_write action=take_seat gave you; pass it on every call while you drive that agent, and each call that carries it keeps the seat yours for a whole lease from that call | |
| action | Yes | what to do; each action takes the arguments its line names | |
| reason | No | revoke_capability, retire: why you are doing this, in one line (at most 200 characters); recorded with the event and exported with the log | |
| target | No | revoke_capability: the outside service: github:<owner>/<repo> · retire: an identity id; defaults to you | |
| hold_id | No | release_hold: the hold's id, as access_grant action=hold returned it | |
| location | No | ungrant: the document or folder, by path; accept_share: the folder to put it in, only you can see (default the top level) · revoke_capability: the folder, by path. A console link (`/d/<Name-Slug>-<32 hex>`, whole or just its id) is accepted too. | |
| share_id | No | withdraw_share: the share's id, from access_read action=offers, shared or proposals | |
| acting_as | No | an agent identity below you, or one working in a folder you can write (pass its seat too), by its id (from identity_write action=spawn) or its @handle (brief_me lists your agents with both), to make this one call as, with that agent's narrower access; for a helper whose session signs in as its person | |
| request_id | No | withdraw: the request's id, from access_read action=requests or my_requests | |
| scope_type | No | ungrant: ungrant: folder (default) or document; a pasted link's kind is used when omitted | |
| subject_id | No | ungrant: ungrant: the member or group id whose grant to take back, from access_read action=who_can_read or browse action=people | |
| subject_type | No | ungrant: ungrant: user (default) or group | |
| idempotency_key | No | Any unique string you choose for this write, e.g. a UUID. If you retry the call with the same key and the same arguments, the first answer is returned and nothing is done twice. Reusing a key for a different request is refused. Keys are kept 24 hours. | |
| distill_window_s | No | retire: how long the identity has to publish before it ends; 0 ends it now |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | ||
| hold | No | ||
| role | No | ||
| seat | No | ||
| wait | No | ||
| cards | No | ||
| ended | No | ||
| inbox | No | with take_seat: your inbox as browse action=inbox lists it. A journal note saying nothing waits is older than this | |
| loads | No | ||
| start | No | with spawn by an agent: how to start the new agent, in place of credentials | |
| across | No | ||
| action | Yes | the action that answered | |
| canSee | No | ||
| folder | No | with spawn: the folder the new agent works in, null when none; with take_seat: the folder this agent works in, when it has one you can read (keep its journal and instructions under <folder>/agents/<handle>/) | |
| labels | No | ||
| ownKey | No | with mint_key | |
| emailed | No | share_out when offered or invited: whether the recipient is emailed; when false, send them recipient_link | |
| refused | No | ||
| request | No | ||
| revoked | No | ||
| identity | No | ||
| position | No | ||
| released | No | with release_streams | |
| requests | No | ||
| scope_id | No | ||
| settings | No | ||
| sessionId | No | ||
| invitation | No | ||
| orgContext | No | ||
| scope_type | No | ||
| subject_id | No | ||
| credentials | No | with spawn by a person or their own client: the child's first credentials, shown once. An agent gets none | |
| capabilities | No | ||
| declassified | No | ||
| organization | No | accept_share: the organization it went into | |
| subject_type | No | ||
| retiringUntil | No | ||
| webhookSecret | No | with a webhook: deliveries are signed in the Standard Webhooks format (webhook-id, webhook-timestamp, webhook-signature); verify them with any Standard Webhooks library and this secret | |
| recipient_link | No | share_out: when offered, the recipient's inbox for this offer; when invited, the invitation's preview, names only. Absolute; absent when the console's public URL is not configured. It grants no access | |
| not_emailed_reason | No | share_out when invited: why the recipient is not emailed, when emailed is false |