list_recent_messages
Apex only. List your LinkedIn DM threads (conversations), newest first — each with the other person’s name, headline, and profile url, last-message preview, last_message_from_me (true = you sent the last message / they went quiet; false = they wrote last / you never answered), when it was sent, unread count, chat_id, provider id, and icp_fit (fit | maybe = Adjacent | not | null — from your saved ICP line; null if none is saved). Use it to triage who to reply to or revive. Optional filters (applied to the fetched page; over-fetches up to 50 then returns up to limit): last_from ("me"|"them"), quiet_for_days (e.g. 7 = last message older than 7 days), icp (fit|maybe|not|none). Response includes scanned (threads checked on this page) and notes (e.g. no ICP line saved). PAGINATED: pass next_cursor back as cursor for older threads (null = nothing older) — a weekly revival sweep pages until it has enough. Read-only.
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_recent_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icp | No | Only threads whose other person has this ICP label (fit|maybe|not), or "none" for unlabelled. | |
| limit | No | Threads to return after filters (1-50, default 20). | |
| 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 threads. | |
| last_from | No | Only threads whose last message was from you ("me" = they went quiet) or from them ("them" = you never answered). | |
| quiet_for_days | No | Only threads whose last message is at least this many days old (e.g. 7). |