{"version":"0.43.0","id":"kanvas.group.access.set","operationId":"kanvas.group.access.set","title":"group access set","requiredInputs":["sessionId","groupId","role"],"description":"Session owner explicitly grants/changes organization/team session access to viewer/editor, or revokes with role:null. Membership is evaluated at every request; does not populate individual memberships or broaden an OAuth session grant. Audit records actor, time and before/after roles. Concurrency: expectedRevision is OPTIONAL stale-write guard. Supplying a stale guard rejects the call; omitting optional guards does not waive authorization or other preconditions. After a conflict, inspect the operation-specific error and read current authorized state before retrying; current-value fields vary by operation.","guidance":"Explicit owner grant/change/revocation of team/org session access. expectedRevision is an optional stale-write guard.","inputSchema":{"type":"object","properties":{"sessionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"groupId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"role":{"anyOf":[{"type":"string","enum":["editor","viewer"]},{"type":"null"}]}},"required":["sessionId","groupId","role"],"additionalProperties":false,"examples":[{"sessionId":"session-id","groupId":"group-id","expectedRevision":0,"role":"viewer"}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.group.access.set","arguments":{"sessionId":"session-id","groupId":"group-id","expectedRevision":0,"role":"viewer"}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}