leads_typeahead
Lightweight name search for type-ahead dropdowns. Matches lead_name from the start, case-insensitively, and returns at most limit rows (default 20, hard cap 50). With no q, returns the most recently updated leads so the dropdown is not empty on open.
Each row carries the lead's current discovery links (discovery_company_guid/discovery_person_guid plus resolved names) so a caller can warn before leads_assign_discovery replaces them. For full lead listing with filters and columns, use workspaces_leads_list instead.
Method: GET /api/v1/workspaces/{workspace_sqid}/leads/typeahead/
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": "leads_typeahead"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Name prefix to match (case-insensitive). | |
| limit | No | Max rows to return. Default 20, capped at 50. |