get_folder
Fetch a folder's metadata and optionally its immediate subfolders, returning structure and nested counts. Use to inspect folder hierarchy.
Instructions
Get one folder's metadata and, optionally, its immediate subfolders.
USE WHEN: Inspecting a folder. Set include_first_level_tree: true to get subfolders. Both date AND direction are silently ignored unless you do — upstream only documented that caveat on date.
USE INSTEAD: get_folder_with_messages when you want the messages inside the folder — this returns structure and counts only.
FIRST: id comes from get_root_folders (field results[].id) — call it first if you don't have one.
EXAMPLE: {"id":"folder-abc","include_first_level_tree":true}
RETURNS: {id, name, type, workspace_id, parent_folder_id?, path?, subfolder_ids?, message_ids?, total_nested_folders_count, total_nested_messages_count, subfolders?, ...}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| date | No | Return only subfolders updated relative to this date and `direction`. Only takes effect when `include_first_level_tree` is true — otherwise it is silently ignored. | |
| direction | No | Direction of the results (newer or older). Only takes effect when `include_first_level_tree` is true — otherwise it is silently ignored. | newer |
| response_fields | No | Dot-path allowlist to shrink the response, e.g. ["results.id","total"]. Omit for the full payload. | |
| include_first_level_tree | No | Defines if the first level of the folder tree should be returned |