room_tree
A room as its index reads it (0.79.0). A room keeps an index by saving one convention file at
.hashn/index.md: convention: convention, dimensions with members written inside members, and
file_tree: <dimension> naming the dimension whose members are the room's folders. Returns each folder the
index names (its parents, its children, its description, the files sitting in it, of any type; a folder
with no files exists only here), the files in folders the index does not name (not wrong: their author's
own), and what the index lost against its version before. In query_index the file-tree dimension is a
column: the folder a file sits in gives its value, and a header that names another member is flagged in
issues. Read only: nothing is refused, and who may read or write a room is unchanged. A room without an
index returns index: null and how to keep one. 0.80.0: rules lists the room's rule files. A rule file is
<folder>/.hashn/rules.md (at the top of the room: .hashn/rules.md) with checks, the vocabulary a
convention has; they apply to every file in that folder and beneath, whatever its convention (applies_to
narrows to some), and a file that breaks one is flagged in issues and on save, never refused. 0.82.0:
for members, writers lists the folders the owner shared for writing (share_folder) and with whom; the
index and rule files themselves are the owner's to write unless their .hashn folder is shared. 0.83.0:
a folder kept from you by a reader list is not in your tree (its files, its rule file); readers lists the
reader lists on the folders you read. 0.84.0, the composite index: a convention file of
the same form at <folder>/.hashn/index.md (a sub index) continues the tree beneath the member that folder is;
index.sub_indexes lists them (path, the member each continues, what is not read), folders is the one
tree, and you see the sub indexes of the folders you read.
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>"
},
"name": "room_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 room whose tree you want, as its index (.hashn/index.md) reads it. |