LemonGateway.Tools.DiscordSendFile (lemon_gateway v0.1.0)

View Source

LemonAgent tool definition for sending files to Discord.

Resolves the file path relative to the project or workspace root, validates the file size, and queues it for delivery to the active Discord channel or thread as an attachment with an optional caption.

Summary

Functions

execute(tool_call_id, params, signal, on_update, root, workspace_dir, session_key)

@spec execute(
  String.t(),
  map(),
  reference() | nil,
  (LemonAgent.Types.AgentToolResult.t() -> :ok) | nil,
  String.t() | nil,
  String.t() | nil,
  String.t() | nil
) :: LemonAgent.Types.AgentToolResult.t()

tool(cwd, opts \\ [])