List a directory
list_directoryLists one directory of a tree: its index.md (when it has one), its subdirectories with how many concepts each holds, and the concepts directly in it, each with its ID for get_concept. Use it to browse a tree's folders, or to see what else is in a page's folder; search_concepts finds concepts by what they say, wherever they are, and list_trees lists the trees. A directory the tree doesn't have is an error.
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). Required unless the Forest has one tree. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The directory's page in OKForest. | |
| path | Yes | The directory listed; empty for the root. | |
| tree | Yes | The tree, and the commit it was read at. | |
| index | No | The directory's `index.md`, when it has one. | |
| concepts | Yes | The concepts directly in it. | |
| directories | Yes | Its subdirectories. |