get_messages_with_person
Apex only. Return the DM conversation with one specific person so you have the context before replying. Find them like a human would: person can be just a NAME ("Jane Doe"), a provider id ("ACo…"), or a LinkedIn slug — names are matched against your inbox and your leads, and if several people match you get a short list to choose from. Each message includes the text, who sent it (from_me), and the timestamp, returned oldest → newest. PAGINATED for history mining: each response includes next_cursor — pass it back as cursor (with the same person) to read further back than the most recent messages, through the full thread history (null = exhausted). Read-only.
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": {
"person": "<person>"
},
"name": "get_messages_with_person"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Messages per page (1-100, default 30). | |
| act_as | No | APEX+ or admin act_as (optional): operate this tool AS one of your managed profiles — pass that profile's LeadShark account email (see list_profiles). Requires an active delegation from the profile owner plus an APEX+ plan or admin act_as enabled by LeadShark (which runs on the profile's own plan); anything else is refused with a reason, never silently redirected. The action runs under the managed profile's own budgets, approval queue, and action log. With a Team key, act_as is required on every call and must be one of the key's accounts (list_profiles); the call must also be within the permission groups the key has on that account, or it's refused with permission_missing. Hourly/daily limits are that profile's own. | |
| cursor | No | Pagination cursor from a previous response’s next_cursor — returns the next (older) page of the same thread. | |
| person | Yes | Who to look up: a name ("Jane Doe"), a provider id ("ACo…"), or a LinkedIn slug. |