List drafts
cooper_list_draftsUse this when you need drafts on one inbox or across the account. Read-only; requires auth and message_read. Inputs: inbox_id (optional; omit for every inbox this key can see), labels (optional; every listed label must match), limit (optional, 1 to 100, default 50), page_token (optional). An inbox-scoped key only sees its inbox. Returns {object:"list", data, next_page_token}. A bad limit is HTTP 400 invalid_limit. A bad page_token is HTTP 400 invalid_page_token.
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": "cooper_list_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size from 1 to 100. Default 50. | |
| labels | No | Labels that must all be present, including scheduled. | |
| inbox_id | No | Inbox id, username, or email. Omit to list drafts for every inbox this key can see. | |
| page_token | No | Cursor from next_page_token. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Items on this page, in the order the tool description gives. | |
| object | No | Object type name, such as list, message, or thread. | |
| next_page_token | No | Cursor for the next page, or null when this is the last page. Pass it back as page_token. |