fix: vision tool cannot process videos, clarify image-only capability
Browse filesRemoved misleading statement about video files. Vision tool ONLY processes
image files (JPEG, PNG, GIF, BMP, WebP), not videos.
Changes:
- Changed "Analyze images or videos" to "Analyze image files"
- Added explicit image format list (JPEG, PNG, GIF, BMP, WebP)
- Removed "For video files...file must be downloaded first"
- Added "Cannot process videos" NOTE
- Added guidance to use youtube_transcript/transcribe_audio for videos
Co-Authored-By: Claude <noreply@anthropic.com>
- src/tools/__init__.py +2 -2
src/tools/__init__.py
CHANGED
|
@@ -66,10 +66,10 @@ TOOLS = {
|
|
| 66 |
},
|
| 67 |
"vision": {
|
| 68 |
"function": analyze_image,
|
| 69 |
-
"description": "Analyze
|
| 70 |
"parameters": {
|
| 71 |
"image_path": {
|
| 72 |
-
"description": "Path to the image file to analyze",
|
| 73 |
"type": "string"
|
| 74 |
},
|
| 75 |
"question": {
|
|
|
|
| 66 |
},
|
| 67 |
"vision": {
|
| 68 |
"function": analyze_image,
|
| 69 |
+
"description": "Analyze image files using multimodal AI vision models. Describe visual content, identify objects, read text from images, answer questions about photos or screenshots. Use when question mentions images, photos, pictures, screenshots, or visual content. Supports JPEG, PNG, GIF, BMP, WebP formats. NOTE: Cannot process videos. For YouTube videos or video files, use youtube_transcript or transcribe_audio tools instead.",
|
| 70 |
"parameters": {
|
| 71 |
"image_path": {
|
| 72 |
+
"description": "Path to the image file to analyze (JPEG, PNG, GIF, BMP, WebP)",
|
| 73 |
"type": "string"
|
| 74 |
},
|
| 75 |
"question": {
|