get_root_folders
List root folders in a Carbon Voice workspace for voicememo or prerecorded types. Use to orient in the folder tree or find a folder_id, optionally including nested folders.
Instructions
List the root folders of a workspace for a given folder type.
USE WHEN: Orienting in the folder tree, or finding a folder_id. type is required: voicememo or prerecorded. include_all_tree returns nested folders too.
USE INSTEAD: get_folder to inspect one folder. get_folder_with_messages when you want a folder’s messages rather than its structure.
EXAMPLE: {"type":"voicememo","workspace_id":"ws-abc"}
RETURNS: {type, workspace_id?, include_all_tree?, sort_by, sort_direction, results: [{id, name, parent_folder_id?, subfolder_ids?, total_nested_folders_count, total_nested_messages_count, ...}]}. Not paginated — this is the complete set.
NARROW: pass response_fields ["results.id","results.name","results.total_nested_messages_count"] unless you need more — the full payload is much larger.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Folder Type | |
| sort_by | No | Field to sort by | |
| workspace_id | No | Workspace ID | |
| sort_direction | No | Sort order direction | ASC |
| response_fields | No | Dot-path allowlist to shrink the response, e.g. ["results.id","total"]. Omit for the full payload. | |
| include_all_tree | No | Return all folders tree |