mangubee Claude commited on
Commit
3ee1e2c
·
1 Parent(s): 61ecfdb

fix: vision tool cannot process videos, clarify image-only capability

Browse files

Removed 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>

Files changed (1) hide show
  1. 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 images 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. NOTE: For YouTube videos, use youtube_transcript tool instead. For video files (MP4, AVI, etc.), the file must be downloaded first.",
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": {