List threads
cooper_list_threadsUse this when you need whole conversations instead of individual messages, for example to see who is in a thread and when the last reply arrived. Read-only; requires auth. Inputs: inbox_id (optional; inbox id, username, or email — omit to list every inbox on the account), assignee (optional; 1–64 characters: letters, digits, and . _ @ + : -), unassigned (optional; true returns threads with no assignment), claimable (optional; true returns threads that are unassigned or whose claim has expired), limit (optional, default 20, max 100), page_token (optional cursor from a previous page), before (optional ISO-8601 upper bound on updated_at), after (optional ISO-8601 lower bound on updated_at). Returns {object:"list", inbox_id, data:[thread], next_page_token}. Each thread has id, subject (first message), preview (latest message), senders, recipients, message_count, last_message_id, labels, attachment_count, received_at, sent_at, created_at, updated_at, assignment (null or a thread_assignment), folder (inbox, archive, spam, or trash), and purge_after (set only for trash). Ordered by updated_at, newest first. Omit folder to list inbox and archive only. A bad page_token returns HTTP 400 invalid_page_token. A bad assignee returns HTTP 400 invalid_assignee. A bad folder returns invalid_folder. An unknown inbox_id returns inbox_not_found.
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_threads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | Only threads whose latest message is after this ISO-8601 timestamp. | |
| limit | No | Max threads to return (default 20, max 100) | |
| before | No | Only threads whose latest message is before this ISO-8601 timestamp. | |
| folder | No | inbox, archive, spam, trash, or all. Omit to list inbox and archive only. Spam and trash stay hidden until you ask for them. A bad value returns invalid_folder. | |
| assignee | No | Only threads assigned to this handle. 1–64 characters: letters, digits, and . _ @ + : -. | |
| inbox_id | No | Inbox id, username, or email. Omit to list threads in every inbox on the account. | |
| claimable | No | When true, threads that are unassigned or whose claim has expired. A worker pool uses this to pick work. | |
| page_token | No | Cursor from next_page_token. A bad token returns invalid_page_token. | |
| unassigned | No | When true, only threads with no assignment row. |
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. | |
| inbox_id | No | Inbox id (inb_…) this object belongs to. Null when it applies to every inbox. | |
| next_page_token | No | Cursor for the next page, or null when this is the last page. Pass it back as page_token. |