> ## Documentation Index
> Fetch the complete documentation index at: https://developer.lofty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# search_lead_activities

> Calls, texts, emails, notes, manual logs, system logs and the unified activity timeline for a lead or for every lead an agent owns.

> [!NOTE]
>
> **READ** · 19 operations · never changes data

**Everything that has happened on a lead** — calls, texts, emails, notes, manual logs, system events and the unified activity timeline. Fetch one entry by id, or a call's recording URL. Set `scope: "agent"` to search across every lead an agent owns.

```js theme={null}
search_lead_activities({
  scope: "lead" | "agent",
  lead_id?, channel: "all" | "call" | "sms" | "email" | "note" | "manual_log" | "system_log",
  id?, log_type?, include_recording_url?, limit?, cursor?, filters?
})
```

Channel is a filter, not a separate tool — one call can span every channel or narrow to one. `filters` holds whatever extra query parameters the resolved endpoint accepts:

| `channel` / `scope` | Notes |
| - | - |
| `channel: "all"` | The unified timeline (calls, texts, emails and manual logs, both auto-captured and agent-logged, in order). Does **not** include notes or system events, which are their own channels. |
| `channel: "call"` | Lists and fetches calls by communication id, so Sales Agent AI calls are included. A call fetched by `id` carries its `recordingUrl`; `include_recording_url` is kept for compatibility. |
| `channel: "manual_log"` | Requires `log_type` (not set when fetching by `id`). |
| `channel: "note"` | `filters.includeSystemNote` available. |
| `channel: "system_log"` | The lead's system event audit trail (stage changes, assignment/routing, subscriptions, smart-plan tasks). `filters.startTime`/`filters.endTime`/`filters.pageNumber`/`filters.pageSize` available (`pageNumber` is 0-based); no single-item endpoint, so `id` is not valid. |
| `scope: "agent"` | `filters.startTime`/`filters.endTime` are required, as **epoch milliseconds** — not an ISO date string. |

Writing to these channels lives in [`manage_leads`](https://developer.lofty.com/mcp/tools/manage-leads) (notes, manual logs) or [`send_message`](https://developer.lofty.com/mcp/tools/send-message) (SMS, email).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.