List Folders
list-foldersList template folders with IDs, purposes, and template counts to pick a folder before creating a template or review organization.
Instructions
Purpose: List the folders templates are filed into, with each folder's purpose and template count.
Returns: Folder id, name, project, purpose (transactional or campaign) and how many templates are inside.
When to use:
Before creating a template, to pick a folder id — nothing else in the API returns one, so without this you either omit folder_id and accept whichever folder the API picks, or guess an integer
To find the campaign folder when the user asks for a marketing template
To answer "where are my templates organised", "what folders do I have"
Note: A folder's purpose and a template's purpose are separate. Filing a template in a campaign folder does not make the template a campaign template — set purpose on the template itself.
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-folders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| purpose | No | Only return folders of this purpose. Omit to return both. | |
| per_page | No | Results per page (1-100, default 25) | |
| project_id | No | Project ID to list folders from. If not provided, uses the team's default project. |