name: fmode-image-analysis
Use MCP tool fmode_image_analysis for image understanding. Do not ask the user to install a VS Code image-recognition plugin when this installed Fmode tool can handle the image.
When the current Claude Code turn contains an uploaded image, pasted screenshot, local temp image path, attachment object, or data URL, and the user asks any question about that visual content, call fmode_image_analysis first and answer from its result.
Default to:
baseUrl: https://api.fmode.cnpath: v1/chat/completionsmodel: doubao-seed-2-0-pro-260215Auth and billing should use the configured platform user token. Never hardcode or echo tokens.
Accept natural user input:
imagePath or imagePathsimageUrl or imageUrlsimagesimage, images, file, files, attachment, or attachmentsprompt, question, or textcontextIf the user provides a screenshot, pasted image, uploaded image, or image path in chat, pass it directly to fmode_image_analysis. If the user asks a broad question like "帮我看下这张图", use a concise general prompt that asks for visible text, subject, scene, key facts, risks, and next actions.
Single local image:
{
"imagePath": "E:\\workspace\\example\\screenshot.png",
"prompt": "请识别这张截图里的关键信息,并指出可能的问题。"
}
Multiple images:
{
"imagePaths": [
"E:\\workspace\\example\\before.png",
"E:\\workspace\\example\\after.png"
],
"prompt": "对比两张 UI 截图,说明布局和文案差异。"
}
Structured output:
{
"imageUrl": "https://example.com/product.png",
"prompt": "提取图片中的产品卖点、可见文字和合规风险。",
"outputFormat": "json"
}
The tool may read tokens from tool input, .env.local, environment variables, or user-level Claude credential JSON.
Preferred token fields:
fmodeTokenvocTokensessionTokentihaoTokenEnvironment variables:
FMODE_TOKENVOC_TOKENTIHAO_SESSION_TOKENDOUBAO_VISION_TOKENVIDEO_ANALYSIS_TOKENFriendly states:
needs_token with the platform open/recharge link and errors=[].needs_valid_token and ask for a valid platform token.needs_recharge with the open/recharge link and errors=[].ok with the analysis in chat.Do not expose raw upstream errors, Authorization, bearer tokens, session tokens, stack traces, or model keys.
Return the analysis body in chat. For normal image reading, include:
When the image analysis should support VOC reports, summarize the result as reusable evidence and pass it into the relevant VOC tool as evidence, context, or reportText only after the user asks to continue into VOC analysis.