360 Secure SkillHub
360 安全技能中心

image-collect

该技能核心是从图片提取知识并本地存储,涵盖下载图片、提取文字与含义、生成摘要、保存图片、将知识存入JSON数据库等操作。适用于用户发送图片、要求将图片存为知识、需要OCR或图片内容理解的场景。输入支持图片URL、Base64编码、本地文件路径,输出包含摘要、关键词、提取文本、图片保存路径等信息。

bondli
bondli
热度 45.04
最近更新 2026-05-11 17:35:54
分类:效率依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:数据处理 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add image-collect
Metadata
name
image-collect
description
This skill extracts knowledge from an image and saves it locally.

Image Collect Skill

This skill extracts knowledge from an image and saves it locally.

When to use

Use this skill when:

  • User sends an image
  • User asks to save image as knowledge
  • Image needs OCR or content understanding

What it does

  1. Download image
  2. Extract text and meaning
  3. Generate summary
  4. Save image locally
  5. Append knowledge to JSON database

Command

Run:

node dist/index.js "<image_url>"

Example:

node dist/index.js "https://example.com/image.png" node dist/index.js "data:image/png;base64,xxxx" node dist/index.js "/tmp/image.png"

Output

Returns extracted knowledge including:

  • summary
  • keywords
  • text
  • saved image path