Update WebSearchTool prompt documentation for image search parameter
Browse files
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
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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
|