Enviar anexo
aspa_send_attachmentSends a local file up to 16 MB to a customer with an optional caption after explicit approval, enabling confirmed attachment delivery in a support conversation.
Instructions
Send a local file (image, PDF, etc., up to 16 MB) to the customer, with an optional caption. This is a real action visible to the customer or the team. Only call it after the user explicitly approved this exact action in the conversation.
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": {
"contact": "<contact>",
"path": "<path>"
},
"name": "aspa_send_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of a file in the user's home folder (not hidden folders), /tmp or a downloaded attachment. | |
| index | No | Index from aspa_list_conversations, only to tell apart contacts with the same name. | |
| caption | No | ||
| contact | Yes | Contact name exactly as listed. Required for every action that changes a conversation. | |
| conversation_id | No | conversation_id returned by aspa_read_conversation. When given, the action is refused if the open conversation is a different one. | |
| confirm_duplicate | No | Only true when the user explicitly wants to repeat the same message sent less than 2 minutes ago. |