Skip to main content
Glama
yomi

yomi

Official
by RikaiDev

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

NameRequiredDescriptionDefault
chat_idYesLINE chat/group/room MID to send to, as returned by list_conversations.
file_nameNoOriginal filename shown to the recipient (sealed E2EE). Required with file_base64; optional with file_path (defaults to its basename).
file_pathNoLocal filesystem path to the file. Mutually exclusive with file_base64.
file_base64NoBase64-encoded file bytes. Mutually exclusive with file_path; requires file_name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.7.2
    • removedInput schema / properties / chatId
      Removed value: -{
      -  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      -  "type": "string"
      -}
    • addedInput schema / properties / chat_id
      Added value: +{
      +  "description": "LINE chat/group/room MID to send to, as returned by list_conversations.",
      +  "type": "string"
      +}
    • removedInput schema / properties / fileBase64
      Removed value: -{
      -  "description": "Base64-encoded file bytes. Mutually exclusive with filePath; requires fileName.",
      -  "type": "string"
      -}
    • removedInput schema / properties / fileName
      Removed value: -{
      -  "description": "Original filename shown to the recipient (sealed E2EE). Required with fileBase64; optional with filePath (defaults to its basename).",
      -  "type": "string"
      -}
    • removedInput schema / properties / filePath
      Removed value: -{
      -  "description": "Local filesystem path to the file. Mutually exclusive with fileBase64.",
      -  "type": "string"
      -}
    • addedInput schema / properties / file_base64
      Added value: +{
      +  "description": "Base64-encoded file bytes. Mutually exclusive with file_path; requires file_name.",
      +  "type": "string"
      +}
    • addedInput schema / properties / file_name
      Added value: +{
      +  "description": "Original filename shown to the recipient (sealed E2EE). Required with file_base64; optional with file_path (defaults to its basename).",
      +  "type": "string"
      +}
    • addedInput schema / properties / file_path
      Added value: +{
      +  "description": "Local filesystem path to the file. Mutually exclusive with file_base64.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "chatId"
      -]New value: +[
      +  "chat_id"
      +]
  2. Addedv0.4.1
  3. Removedv0.3.0
  4. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does reasonably well: it discloses end-to-end encryption with the filename sealed, synchronous immediate delivery, and two concrete failure modes (key resolution failure, upload rejection). It omits file-size limits, rate limits, and what a successful response contains.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the core action and scope, then adds delivery semantics, failure behavior, and cardinality rules in a compact block. The parenthetical file extensions and the 'same pipeline as send_image' aside are slightly decorative but still earn their place as routing cues.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter mutation tool with no output schema and no annotations, the description covers delivery semantics, failure modes, and cardinality constraints, which is most of what an agent needs. Size limits and response shape are the remaining gaps, minor for a fire-and-send tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters are already documented in the input schema; the description's statements about mutual exclusivity and file_name overriding the basename largely restate what the schema says. Baseline 3 applies since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (sends an E2EE file attachment) with scope (any file type, 1:1/group/room) and explicitly relates it to the sibling send_image by naming the shared pipeline. An agent can distinguish it from send_image, send_message, and the other send_* tools without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Clear operational context: one send per call, immediate delivery, works across chat types, and the exactly-one-of file_path/file_base64 rule is spelled out. It never explicitly says when to prefer send_image over send_file or vice versa, so the routing guidance is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.