Telegram intake: Attach to entity
intake_attach_to_entityCopy the caller's captures into a COMPANY cabinet, onto a CRM lead or an ERP organization / contact / project. The copy belongs to the company from then on: every member of that cabinet sees it, and deleting the personal capture does not remove it — so confirm with the user which captures go where. Pass 'capture_ids' and either 'tenant' + 'entity_kind' + 'entity_ref' (+ optional 'entity_title' for ERP records), or 'label_targets': true to copy each capture onto the entities its client label points at. Attaching the same capture to the same entity twice is a no-op. Returns what was attached and why the rest was refused. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.
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": {
"capture_ids": "<capture_ids>"
},
"name": "intake_attach_to_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant | No | Cabinet id (list_my_workspaces). | |
| entity_ref | No | Lead id, or the ERP record's GUID. | |
| capture_ids | Yes | ||
| entity_kind | No | ||
| entity_title | No | ||
| label_targets | No |