Analyze images using AI with the understand_image tool
Install
npx skills add https://github.com/imsus/pi-extension-minimax-coding-plan-mcp --skill minimax-image-understandingSKILL.md
MiniMax Image Understanding Skill
Use this skill when you need to analyze, describe, or extract information from images.
How to Use
Call the understand_image tool directly with a prompt and image URL:
understand_image({
prompt: "Your question about the image",
image_url: "https://example.com/image.png"
})
When to Use
Use understand_image when:
- Screenshots: Error messages, UI issues, code in screenshots
- Visual content: Photos, diagrams, charts, graphs
- Documents: Extracting text from images (OCR), understanding layouts
- UI/UX analysis: Evaluating designs, identifying components
- Visual debugging: Understanding visual bugs or layout issues
When NOT to Use
Do NOT use understand_image when:
- Image is already described in the conversation
- The image is a simple icon or emoji you recognize
- No image is provided or the image URL is inaccessible
- Redundant with existing context (e.g., file contents already visible)
Usage
understand_image({
prompt: "What do you see in this image?",
image_url: "https://example.com/screenshot.png"
})
API Details
Endpoint: POST {api_host}/v1/coding_plan/vlm
Request Body:
{
"prompt": "Your question about the image",
"image_url": "data:image/jpeg;base64,/9j/4AAQ..."
}
Response Format:
{
"content": "AI analysis of the image...",
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}
Image Processing
The tool automatically handles three types of image inputs:
HTTP/HTTPS URLs: Downloads the image and converts to base64
- Example:
https://example.com/image.jpg
- Example:
Local file paths: Reads local files and converts to base64
- Absolute:
/Users/username/Documents/image.png - Relative:
images/photo.png - Removes
@prefix if present
- Absolute:
Base64 data URLs: Passes through existing base64 data
- Example:
data:image/png;base64,iVBORw0KGgo...
- Example:
Image Formats
Supported:
- JPEG (.jpg, .jpeg)
- PNG (.png)
- WebP (.webp)
Not supported:
- PDF, GIF, PSD, SVG, and other formats
Crafting Effective Prompts
For Descriptions
- "Describe what's in this image in detail"
- "What is the main subject of this image?"
- "Describe the visual style and composition"
For Code/Technical
- "What code is shown in this screenshot?"
- "Extract all text from this image"
- "Identify the UI framework/components used"
For Analysis
- "Analyze this UI design. What is working well and what could be improved?"
- "What emotions or mood does this image convey?"
- "Compare this design to Material Design principles"
For OCR/Text Extraction
- "Extract all text from this image"
- "Read the error message in this screenshot"
- "What does the label say in this image?"
Examples
Error Analysis
understand_image({
prompt: "What is the error message and where is it located in this screenshot?",
image_url: "./error-screenshot.png"
})
Code Screenshot
understand_image({
prompt: "What code is shown in this screenshot? Please transcribe it exactly.",
image_url: "https://example.com/code.png"
})
Design Review
understand_image({
prompt: "Analyze this UI design. What is working well and what could be improved?",
image_url: "https://example.com/mockup.png"
})
OCR
understand_image({
prompt: "Extract all text from this image",
image_url: "/Users/username/Documents/scan.png"
})
Tips
- Be specific in your prompt about what you want to know
- Mention format if you need structured output (e.g., "list all elements")
- Include context if the image is part of a larger task
- For screenshots, specify if you need full-page or just a specific area
- Complex analysis may trigger a confirmation prompt (analyze, extract, describe, recognize, transcribe, read)
Error Handling
- Status code 1004: Authentication error - check API key and region
- Status code 2038: Real-name verification required
- Invalid image: File doesn't exist or URL is inaccessible
- Unsupported format: Image format not in JPEG, PNG, WebP
Related skills
ai-image-generationgenmedia-labs713KGenerate and edit images on RunComfy via the `runcomfy` CLI — a smart router across the full image-model catalog: FLUX 2 (Klein 9B/4B, Pro, Dev, Flash, Turbo, Max), Google Nano Banana 2 / Pro, OpenAI GPT Image 2, ByteDance Seedream 5 / 4-5 / 4-0 and Dreamina 4-0, Alibaba Qwen Image and Z-Image Turbo, Wan 2-7. Covers both text-to-image (t2i) and image-to-image / edit (i2i) endpoints — the skill picks the right model for the user's actual intent (typography precision, photoreal portraits, sub-secoai-image-generation101-skills547KGenerate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stnano-banana-2prime-skills424KGenerate images with Google Nano Banana 2 (Gemini-family flash-tier text-to-image) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Nano Banana 2's strengths (rapid iteration, in-image typography rendering, predictable framing, optional web-grounded context), the resolution-tier pricing, the safety-tolerance dial, and when to route to Nano Banana Pro / GPT Image 2 / Flux 2 / Seedream insteimage-editprime-skills424KEdit images on RunComfy — this skill is a smart router that matches the user's intent to the right edit model in the RunComfy catalog. Picks Nano Banana Edit (batch up to 20, identity-preserving default), OpenAI GPT Image 2 Edit (multilingual in-image text rewrite, multi-ref composition, layout precision), Flux Kontext Pro (single-ref high-fidelity local edit), or Z-Image Turbo Inpaint (mask-driven precise region edit). Bundles each model's documented prompting patterns so the skill gets sharper
