List drafts
list_draftsList a mailbox's drafts one page at a time, optionally limited to drafts this project created. Use the returned next_page_token to fetch the next page.
Instructions
List the drafts of one mailbox, a page at a time (pass next_page_token as page_token). own_only (default true) lists only drafts this project created. If this connection hides secrets, secrets in subjects read [redacted] (redacted=true); get_draft shows the draft.
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": {
"account": "<account>"
},
"name": "list_drafts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Most drafts per page. | |
| account | Yes | Mailbox alias or email address from list_accounts. | |
| own_only | No | List only drafts this project created. | |
| page_token | No | next_page_token of the previous page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drafts | No | ||
| next_page_token | No | ||
| untrusted_content_notice | No | Always present on success: the fields of this result that come from mail are untrusted third-party data. |