Change who sees what
set_accessChanges who can see a folder or a file of the project, like finance/, reports/q3-margins.xlsx or a skill's scripts/, to keep it to some people or a group, hide it from the client, or make it visible to everyone who sees the folder above it (path, with sees: everyone, or only these people and groups, each reading or writing), which top folders one person or agent sees (person, with folders), or who is in a group, like finance (a group can be made before its people join; group, with members: its whole list; a new name makes the group, null removes it), as this person, within their rights: managers change anything, and only they change groups; the people every closed folder over a path names as writing change lines inside it; anyone who writes may close a new, empty folder, naming themselves or a group they are in. Managers always see everything. A line on a file or a folder inside another only narrows it: a line naming someone who does not see the folder above is refused. A file's own line goes with it when it moves. With a file's path and versions (or words they hold), it takes those earlier versions out of the history of everyone but managers, or of everyone but managers and the people who see keep_for, live or removed files alike, and, with with_earlier_names, the versions kept under the file's earlier names. The answer first says what the change opens or closes, and to whom; the person confirms it in this AI tool before anything changes, and clients that cannot show that confirmation get that line and a proposal id instead. For when the person asks to change who sees what.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "set_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | A folder (ending in /) or a file, like finance/ or reports/q3-margins.xlsx: whose line to change, or, with versions or holding, whose earlier versions to take out. | |
| sees | No | With path: "everyone" who sees the folder above it (on the project, at the top), or only these people and groups besides the managers, each writing unless reads is true. | |
| group | No | Or: a group's name, like finance: one word in small letters. | |
| person | No | Or: the person or agent whose own top folders to set, by member id or name. | |
| rename | No | With group: its new name. | |
| folders | No | With person: "everything" open to them, or only these top folders. | |
| holding | No | Or, with a document's path: words. Its earlier versions that hold them are taken out. | |
| members | No | With group: everyone in it, the whole list ([] for no one yet), or null to remove the group. | |
| project | No | The project's slug, from open_project, like acme. Not needed when a § address names the project, or when the person is on one project. | |
| keep_for | No | With versions or holding: a top folder, like finance/, whose people keep reading them with the managers. | |
| versions | No | With a file's path: the versions to take out of history, by number, or "earlier": every version before the current one (every version of a removed file). | |
| with_earlier_names | No | true: with versions or holding, also take out the versions kept under the file's earlier names (files removed when it was renamed; the answer lists them). With holding, only those that hold the words; else all of them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change | No | ||
| applied | Yes | ||
| preview | No | ||
| proposal | No |