Skip to content

feat(send_message): add filePath param and feishu media attachment support#12461

Open
jasonxargs-boop wants to merge 1 commit into
NousResearch:mainfrom
jasonxargs-boop:feat/send-message-filepath-feishu-media
Open

feat(send_message): add filePath param and feishu media attachment support#12461
jasonxargs-boop wants to merge 1 commit into
NousResearch:mainfrom
jasonxargs-boop:feat/send-message-filepath-feishu-media

Conversation

@jasonxargs-boop

Copy link
Copy Markdown

Summary

  • Add filePath parameter to send_message tool schema for sending local files as attachments
  • Enable native media delivery for Feishu (images, videos, audio, documents)
  • Previously _send_feishu accepted media_files but the caller never passed them

Changes

  1. Schema: new filePath (string) parameter with platform support description
  2. _handle_send: validates file existence, builds media_files list from filePath, merges with MEDIA:-tagged files from message
  3. _send_to_platform: Feishu gets dedicated media-capable path (like Telegram/Discord) with proper chunking and media_files passthrough
  4. Validation: allow sending file-only messages (no text required when filePath is provided)
  5. Guard messages: updated to list feishu alongside telegram, discord, weixin

Test Plan

  • Send text + file to feishu via send_message(filePath=...)
  • Send file-only to feishu (no message text)
  • Existing text-only send still works
  • CI passes

@Artem151193

Copy link
Copy Markdown

Automated review check: BLOCKED.

GitHub reports this PR as DIRTY, so it is not merge-ready yet. Please clean up the branch/worktree state and rerun the required checks.

…pport

- Add 'filePath' parameter to send_message schema for sending local files as attachments
- Handle filePath in _handle_send: validate file exists, build media_files list
- Add feishu to media-capable platforms: dedicated chunking + media send loop
- Pass media_files to _send_feishu (was previously omitted)
- Relax message validation: allow sending file-only messages without text
- Update media guard messages to include feishu alongside telegram, discord, weixin
@jasonxargs-boop jasonxargs-boop force-pushed the feat/send-message-filepath-feishu-media branch from 352ec44 to 94d4283 Compare April 20, 2026 03:39
@jasonxargs-boop

Copy link
Copy Markdown
Author

Rebased on main, resolved conflicts with Matrix media support. Ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists platform/feishu Feishu / Lark adapter type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants