chenbhao Claude Opus 4.6 commited on
Commit
1f6ed64
·
1 Parent(s): dd104c9

Update WebSearchTool prompt documentation for image search parameter

Browse files
Files changed (1) hide show
  1. src/tools/WebSearchTool/prompt.ts +8 -4
src/tools/WebSearchTool/prompt.ts CHANGED
@@ -19,10 +19,14 @@ Search Strategy:
19
  - If results are weak or empty, try rephrasing the query
20
  - Prefer more specific queries when possible (add keywords, version numbers, or context)
21
 
22
- Search Result Format:
23
- - Each search result includes: title, URL, snippet, and optionally an image URL (thumbnail)
24
- - **Images are automatically displayed inline in the terminal** when search results include image thumbnails — no need to manually call ImageShowTool for search result images
25
- - You can also explicitly call ImageShowTool with any image URL (https://... or local path) to display images
 
 
 
 
26
 
27
  CRITICAL REQUIREMENT - You MUST follow this:
28
  - After answering the user's question, you MUST include a "Sources:" section at the end of your response
 
19
  - If results are weak or empty, try rephrasing the query
20
  - Prefer more specific queries when possible (add keywords, version numbers, or context)
21
 
22
+ Image Search (search_images parameter):
23
+ - Set **search_images: true** to search specifically for images (photos, artworks, screenshots).
24
+ Example: WebSearch(query: "milet 写真", search_images: true)
25
+ - When search_images is true, results include direct image URLs (img_src) that you can display
26
+ with ImageShowTool(src: img_src).
27
+ - Example workflow: WebSearch(query: "...", search_images: true) → pick a result → ImageShowTool(src: img_src)
28
+ - Without search_images: true, this is a general web search and image URLs are NOT available.
29
+ - DO NOT pass article/page URLs to ImageShowTool — it only accepts direct image URLs (.jpg/.png/.gif/.webp).
30
 
31
  CRITICAL REQUIREMENT - You MUST follow this:
32
  - After answering the user's question, you MUST include a "Sources:" section at the end of your response