list_trees
List the trees. The trees in the account’s Forest: each one’s slug (which concept IDs start with), name, description, and source. Read-only.
Parameters
Section titled “Parameters”No parameters.
Returns
Section titled “Returns”One JSON object (see All tools):
| Field | Type | Always | Description |
|---|---|---|---|
account |
Account | Yes | The account whose Forest this is. |
trees |
list of Tree | Yes | The account’s trees. |
Example
Section titled “Example”Asked “Which knowledge trees do we have?”, an assistant might call list_trees with:
{}On OKForest’s test Forest (Acme’s made-up company knowledge), it returns:
{ "account": { "id": "3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f", "name": "Acme", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/" }, "trees": [ { "slug": "company", "name": "Acme company knowledge", "description": "Acme's customers and policies.", "repo": "acme/acme-okf", "folder": "", "access": "installation", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/company/" }, { "slug": "public", "description": "Acme's customers and policies.", "repo": "acme/acme-okf", "folder": "", "access": "public", "url": "https://app.okforest.ai/@/3f2b8c1e-9a4d-4c7b-8e2f-6d1a0b5c9e7f/public/" } ]}