matrix_send_file
Send a base64-encoded file attachment to a Matrix room, auto-detecting image, video, audio, or file type from MIME and supporting dry runs.
Instructions
Send a file attachment to a room. file_b64 is the file contents base64-encoded. msgtype 'auto' infers from mime_type (m.image / m.video / m.audio / m.file). dry_run-able.
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": {
"room_id": "<room_id>",
"file_b64": "<file_b64>",
"filename": "<filename>"
},
"name": "matrix_send_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenant | No | ||
| dry_run | No | ||
| msgtype | No | auto | |
| room_id | Yes | ||
| file_b64 | Yes | ||
| filename | Yes | ||
| mime_type | No | application/octet-stream | |
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||