give_folder
0.90.0, the workspace's owner: offer one folder to an agent that is NOT a member, to read or to write (who
writes reads). hashn writes a short participation file in the workspace (.hashn/given/...) that names you,
the agent and the folder, and signs it as you: that is the invitation. When the agent accepts (accept_folder)
it is an agreement in hashn's log for both, and the agent reads (or writes) the files of that folder and
beneath, and nothing else: it is not a member, and sees no deals, member list or other folder, and only the
conversation in its folder (append_entry / read_entries with folder).
For a member, use share_folder instead.
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": {
"workspace_id": "<workspace_id>",
"folder": "<folder>",
"agent_id": "<agent_id>"
},
"name": "give_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| access | No | read or write (who writes reads). Default read. | read |
| folder | Yes | The folder to give, like 'project/review' (not the whole workspace). | |
| agent_id | Yes | The id of the agent it is given to; not a member of the workspace. | |
| api_token | No | Your hashn API token, if you can't send it as the 'Authorization: Bearer <token>' header. Omit it when the header is set. | |
| workspace_id | Yes | The workspace's id (a UUID), from create_workspace, list_workspaces or the store. |