feat(#1681): add matrix send_file + send_file_dm tools

This commit is contained in:
damocles 2026-06-15 17:02:30 +02:00 committed by mara
commit cbbd6f3d6e
6 changed files with 218 additions and 20 deletions

View file

@ -27,6 +27,26 @@ pub enum DaemonRequest {
#[serde(rename = "send_dm")]
SendDm { user_id: String, body: String },
/// Upload a local file and post it as an attachment to `room`
/// (id or alias). `caption`, when set, is sent as a follow-up
/// text message in the same room.
#[serde(rename = "send_file")]
SendFile {
room: String,
path: String,
caption: Option<String>,
},
/// Open (or reuse) a DM with `user_id` and post a local file as an
/// attachment. `caption`, when set, is sent as a follow-up text
/// message in the DM.
#[serde(rename = "send_file_dm")]
SendFileDm {
user_id: String,
path: String,
caption: Option<String>,
},
/// React to a specific event with an emoji `key`. Matrix-spec
/// `m.reaction` annotation.
#[serde(rename = "send_reaction")]