Skip to content
glm4v-analyze-image logo

GLM-4V图像分析工具指南

glm4v-analyze-image

智谱AI的视觉语言模型,用于图像分析、内容识别和视觉问答

SKILL.md

Full skill instructions

GLM-4V图像分析工具指南

核心能力

  • 图像内容识别和描述
  • 视觉问答和推理
  • 图像细节分析
  • 多模态理解和生成

调用规范

{
  "tool_name": "glm4v_analyze_image",
  "parameters": {
    "model": "glm-4v-flash",
    "image_url": "图片URL",
    "prompt": "分析提示语"
  }
}

以下是调用 glm4v_analyze_image 工具的正确和错误示例。请务必遵循正确格式。

✅ 正确示例

{"model": "glm-4v-flash", "image_url": "https://path/​to/​image.jpg", "prompt": "Describe this image."}

❌ 错误示例 (请避免以下常见错误)

  • 缺少引号或逗号:

    {"model": "glm-4v-flash", "image_url": "https://path/​to/​image.jpg", "prompt": "Describe this image."}
    

    (缺少 })

  • 参数名错误:

    {"img_url": "https://path/​to/​image.jpg"}
    

    (应为 "image_url" 而非 "img_url")

  • 模型名称错误:

    {"model": "glm4v-flash", "image_url": "https://path/​to/​image.jpg", "prompt": "Describe this image."}
    

    (应为 "glm-4v-flash")

关键指令

  1. 模型选择: 使用 glm-4v-flash 模型
  2. 图片格式: 支持常见图片格式(JPEG, PNG, WebP等)
  3. 提示语设计: 清晰具体的分析指令
  4. URL有效性: 确保图片URL可公开访问

使用场景

图像描述

{
  "tool_name": "glm4v_analyze_image",
  "parameters": {
    "model": "glm-4v-flash", 
    "image_url": "https://example.com/​image.jpg",
    "prompt": "详细描述这张图片的内容"
  }
}

视觉问答

{
  "tool_name": "glm4v_analyze_image",
  "parameters": {
    "model": "glm-4v-flash",
    "image_url": "https://example.com/​image.jpg", 
    "prompt": "图片中有多少人?他们在做什么?"
  }
}

细节分析

{
  "tool_name": "glm4v_analyze_image",
  "parameters": {
    "model": "glm-4v-flash",
    "image_url": "https://example.com/​image.jpg",
    "prompt": "分析图片中的文字内容和技术细节"
  }
}

最佳实践

提示语设计

  • 具体明确: "描述图片中人物的动作和表情"
  • 任务导向: "识别图片中的所有物体并分类"
  • 细节要求: "注意颜色、形状、空间关系等细节"

错误处理

  • 检查图片URL是否有效
  • 确认图片格式支持
  • 处理网络超时情况

能力范围

  • ✅ 物体识别和分类
  • ✅ 场景理解和描述
  • ✅ 文字识别(OCR)
  • ✅ 情感和氛围分析
  • ✅ 技术细节提取

限制说明

  • ❌ 不能处理敏感或不当内容
  • ❌ 图片大小和分辨率有限制
  • ❌ 实时视频流不支持
  • ❌ 3D模型分析不支持

性能优化

  • 使用合适的图片尺寸
  • 提供具体的分析需求
  • 分步骤进行复杂分析
  • 结合其他工具进行验证

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View