feat(tools): add send_image tool for channel image delivery#215
Closed
maximilize wants to merge 1 commit intomoltis-org:mainfrom
Closed
feat(tools): add send_image tool for channel image delivery#215maximilize wants to merge 1 commit intomoltis-org:mainfrom
maximilize wants to merge 1 commit intomoltis-org:mainfrom
Conversation
7fa631b to
9b0f411
Compare
Lets skills send local image files (PNG, JPEG, GIF, WebP) to channel targets like Telegram. Reuses the existing screenshot pipeline with MIME-aware encoding and optional captions. Also fixes send_screenshot_to_channels to parse the actual MIME type from the data URI instead of hardcoding image/png.
9b0f411 to
077c740
Compare
Collaborator
|
Thanks, rewrote because of conflicts in #224 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
send_imagetool that lets skills send local image files (PNG, JPEG, GIF, WebP) to channel targets like Telegramdata:URI in thescreenshotkey, which the chat runner picks up automaticallycaptionparameter sent as the media message textsend_screenshot_to_channelsto parse actual MIME type from the data URI instead of hardcodingimage/pngValidation
Completed
cargo checkpassescargo test— all tests pass (7 new unit tests forSendImageTool)cargo +nightly-2025-11-30 fmt --all -- --checkpassescargo +nightly-2025-11-30 clippy --workspace --all-targets -- -D warningspassesRemaining
./scripts/local-validate.sh(requires CI environment)Manual QA
/tmp/test.pngsend_imagewithpath: "/tmp/test.png".jpg,.gif,.webpto confirm MIME handlingcaptionparameter — verify caption appears in Telegram.bmp) — verify rejection