List a directory
list_directoryA directory of a tree: its index.md (when it has one), its subdirectories, and the concepts directly in it. Omit the path for the tree's root; omit the tree to list the trees.
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": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory, e.g. `product`; omit for the root. | |
| tree | No | The tree's slug, as list_trees gives it (not its name). The tree to list; omit to list the trees. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The directory's page in OKForest. | |
| path | No | The directory listed; empty for the root. | |
| tree | No | The tree, and the commit it was read at. | |
| index | No | The directory's `index.md`, when it has one. | |
| trees | No | Without `tree`: the account's trees. | |
| account | No | Without `tree`: the account whose Forest this is. | |
| concepts | No | The concepts directly in it. | |
| directories | No | Its subdirectories. |