list_email_history
List sent/draft emails (email_drafts) for a lead (lead_id), a person (contact_id) or an organisation (account_id) — or with unassigned=true the SENT mails that belong to no record at all (e.g. sent with send_email before the contact existed); assign them with assign_email (draft_id = id). Each row carries assignment_state/assignment_candidates.
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_email_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entries to return | |
| lead_id | No | ID of the lead | |
| account_id | No | ID of the account (company) | |
| contact_id | No | ID of the contact | |
| unassigned | No | true = list sent mails that belong to no lead, contact or account |