analyze_image
Analyze images with anti-hallucination safeguards, supporting general, OCR, UI screenshot, and object detection modes, returning JSON with flagged low-confidence claims.
Instructions
Analyze an image with anti-hallucination safeguards.
Args:
image_source: Local file path or http(s) URL of the image.
mode: One of "general" | "ui_screenshot" | "ocr" | "detect".
- general structured subject/background/style description
- ui_screenshot UI element inventory with bbox + confidence
- ocr text-only extraction (see ocr_extract for the dedicated tool)
- detect object detection with mandatory bbox
prompt: Optional extra instructions (e.g. "focus on the top-right card").
temperature: Sampling temperature, default 0.2 (low = less hallucination).
Returns:
JSON string. Low-confidence claims are tagged with "_flag": "存疑".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | general | |
| prompt | No | ||
| temperature | No | ||
| image_source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |