fix: update message tool description to mention media capability

The LLM didn't know it could send files because the tool description
only mentioned text messages. Now it explicitly describes file attachment
support so the bot will use the media parameter instead of telling users
to send files manually.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
repfigit 2026-02-15 22:28:24 -05:00
parent e2e24a0366
commit e2ba9b9fb5

View file

@ -23,7 +23,7 @@ func (t *MessageTool) Name() string {
}
func (t *MessageTool) Description() string {
return "Send a message to user on a chat channel. Use this when you want to communicate something."
return "Send a message to user on a chat channel. Use this when you want to communicate something. You can also attach local files (images, documents, audio, video) using the media parameter — the files will be delivered natively through the channel."
}
func (t *MessageTool) Parameters() map[string]interface{} {