send_file
Sends an E2EE file attachment to a LINE 1:1 chat, group, or room from a local path or base64 data.
Instructions
Sends an E2EE file attachment (any type — .docx, .pdf, .zip, …) to a LINE conversation immediately (same pipeline as send_image; the original filename is sealed end-to-end). Works for 1:1/group/room; fails honestly if the key cannot be resolved or the upload is rejected. One send per call. Provide exactly one of file_path or file_base64; file_name is required with file_base64 (and overrides the basename when given with file_path).
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": {
"chat_id": "<chat_id>"
},
"name": "send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | LINE chat/group/room MID to send to, as returned by list_conversations. | |
| file_name | No | Original filename shown to the recipient (sealed E2EE). Required with file_base64; optional with file_path (defaults to its basename). | |
| file_path | No | Local filesystem path to the file. Mutually exclusive with file_base64. | |
| file_base64 | No | Base64-encoded file bytes. Mutually exclusive with file_path; requires file_name. |