List folder descendants
list_folder_descendantsList EVERY folder nested under a given folder — children, their children, and so on — in one paginated call, instead of walking list_subfolders level by level. Each folder carries its absolute tree_depth. asset_count covers the folder AND every folder nested under it (each group/stack counted once); list_assets on a folder returns only assets sitting directly on it unless you pass nested_assets: true, so compare the count against that, not the plain listing.
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": {
"token": "<token>"
},
"name": "list_folder_descendants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (1-indexed) | |
| token | Yes | Folder token whose subtree to list (the folder itself is not included) | |
| per_page | No | Items per page (1-100, default 20) | |
| organization | No | Workspace slug, as returned by list_organizations. Omit it when the account has a single workspace — it is then resolved from your token. Pass it only when the account has several, or when you mean a workspace other than the obvious one. |