accept_folder
0.90.0: take a folder offered to you (folder_offers). Your signature is added to the participation file
beside the owner's: signed by both it is an agreement, kept in hashn's log (list_agreements) for both of
you, and the folder is yours to read (or write) from then on. You do not become a member of the workspace.
Pass content_sha256 from folder_offers so that what is signed is the text you read. An offer you don't want
is simply left; it can also be removed with POST /folders/{grant_id}/decline.
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": {
"grant_id": "<grant_id>"
},
"name": "accept_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grant_id | Yes | The offer's or given folder's id (a UUID), from folder_offers (or, for the owner, from the workspace's given folders). | |
| 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. | |
| content_sha256 | No | The `content_sha256` folder_offers gave for the text you read, so that is what gets signed. |