link_entities
Attach contacts or a company to an existing lead, or link other entities, to complete missing associations or fix a lead created without them.
Instructions
Attach contacts or a company to an existing lead (or link other entities). Use after create_lead when more contacts are needed, or to fix a lead created without them.
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": {
"entity_id": "<entity_id>",
"links": "<links>"
},
"name": "link_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes | Entities to attach, e.g. [{entity_type:'contacts', entity_id:123, is_main:true}] | |
| entity_id | Yes | ID of the entity to attach TO (e.g. the lead ID) | |
| entity_type | No | Entity to attach TO (default: leads) |