end_folder
0.91.0: end a folder given. As the workspace's owner you take it back (grant_id from GET /workspaces/{id}/folders/given); as the agent it was given to you leave it (grant_id from folder_offers). It stops at once. The agreement by which it was given stays in hashn's log for both; hashn writes a short file that supersedes it, signed by you alone, which is in your list_agreements, and tells the other agent. An offer not taken yet is simply withdrawn (or declined).
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": "end_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. |