微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

SearchOnlineAssets

SearchOnlineAssets · v1.0.9
安全 B 级 作者 dlazyai 公开目录收录
1.2k 下载 0 安装 5.8k 收藏 4 浏览

简介

SearchOnlineAssets

原始描述

Online asset search tool: queries public stock libraries (Pixabay) for high-quality photos, illustrations, vectors and videos, returning result metadata and...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/searchonlineassets/
其它 Agent解压到它自己的 skills 目录,目录名用 searchonlineassets

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

searchOnlineAssets 是一款面向 AI Agent 的在线素材搜索工具,通过封装 Pixabay 免费图库的搜索能力,为用户提供高质量的免版税图片、插画、矢量图和视频资源。该技能本身为纯 Markdown 文档型实现,实际功能依赖外部 npm 包 @dlazy/cli@1.0.9,需通过 CLI 安装后调用。

使用时,Agent 以结构化对象调用 searchOnlineAssets 工具,支持关键词搜索、图片类型筛选(photo/illustration/vector)、方向过滤(horizontal/vertical)以及分页控制。系统强制开启安全搜索,自动过滤不当内容。建议优先使用英文关键词以获得更准确的匹配结果,并将中文查询自动翻译后提交。

用户需先注册 dlazy.com 账号获取 API key,可通过 dlazy auth set 命令持久化配置,或更推荐地使用 DLAZY_API_KEY 环境变量按次传入。工具返回包含预览图、标准尺寸及高清大图的完整 URL 集合,方便直接嵌入当前工作流。

显著优点

海量免费资源:直接对接 Pixabay 平台,可访问超过 270 万张 CC0 协议的免版税素材,涵盖摄影、插画、矢量图形及视频,无需担心版权纠纷,商用场景完全合规。

精准筛选能力:支持按图片类型、方向、分页等多维度过滤,帮助用户快速定位所需素材,减少人工浏览时间。

无缝工作流集成:返回结构化的元数据和直连 URL,便于 Agent 自动下载、嵌入文档或生成设计稿,无需离开对话环境即可完成素材获取。

灵活调用方式:既支持全局安装后的本地调用,也支持 npx 临时执行,满足不同团队对依赖管理的要求。

潜在缺点与局限性

中间服务依赖:所有查询需经 dlazy.com 服务转发至 Pixabay,而非直接调用官方 API。这意味着搜索历史可能被中间商记录,且服务可用性受 dlazy 平台稳定性制约。

供应链风险:核心功能完全外包给 npm 包 @dlazy/cli@1.0.9,该包由个人开发者维护(T3 级来源),缺乏企业级安全审计。存在供应链攻击风险,如包被劫持或发布恶意版本。

API Key 管理隐患:默认配置方式将凭证持久化到本地文件,虽限制了文件权限,但在备份、共享或多用户环境中仍有泄露风险。

关键词语言限制:Pixabay 的索引以英文为主,中文搜索效果较差,需要 Agent 具备自动翻译能力,否则可能返回不相关结果。

结果质量不可控:作为免费图库,素材质量参差不齐,专业设计场景可能需要额外筛选或后期处理。

适合的目标群体

本技能最适合内容创作者、社交媒体运营、小型企业主、博客作者及教育从业者——需要频繁获取视觉素材但预算有限的场景。对于快速制作演示文稿、社交媒体配图、博客插图或教学材料尤为实用。

同时适合AI 工作流开发者,希望为 Agent 赋予自主搜索和引用外部资源的能力,构建自动化的内容生产管道。

不适合对数据隐私极度敏感的企业(搜索查询经第三方转发)、需要独家高端素材的专业设计师,或对供应链安全有严格要求的大型组织生产环境。

使用风险

性能风险:网络请求依赖 dlazy 和 Pixabay 的双重服务链路,任一节点故障或限流都将导致查询失败。建议实现重试机制和降级策略。

依赖项风险:npm 包的版本锁定虽降低自动更新风险,但仍需定期执行 npm audit 检查漏洞。建议优先使用 npx 临时执行,减少全局安装的持久化攻击面。

凭证泄露风险:API key 是访问 dlazy 服务的唯一凭证,一旦泄露可能被滥用配额或恶意搜索。强烈推荐使用环境变量注入,并定期轮换密钥。

数据隐私风险:搜索关键词经 dlazy 服务中转,敏感商业信息或个人隐私相关内容不应通过此工具查询。建议仅用于公开、非敏感的创意素材搜索。

合规边界风险:Pixabay 素材虽为 CC0 协议,但部分素材可能包含可识别的人物、商标或私有财产,在特定商业场景(如广告、产品包装)中仍需额外注意肖像权与商标合规。

技能正文


name: searchOnlineAssets version: 1.0.9 description: 'Online asset search tool: queries public stock libraries (Pixabay) for high-quality photos, illustrations, vectors and videos, returning result metadata and URLs for use in the current workflow.' metadata: { 'clawdbot': { 'emoji': '🤖', 'requires': { 'bins': ['npm', 'npx'] }, 'install': 'npm install -g @dlazy/cli@1.0.9', 'installAlternative': 'npx @dlazy/cli@1.0.9', 'homepage': 'https://github.com/dlazyai/cli', 'source': 'https://github.com/dlazyai/cli', 'author': 'dlazyai', 'license': 'see-repo', 'npm': 'https://www.npmjs.com/package/@dlazy/cli', 'configLocation': '~/.dlazy/config.json', 'apiEndpoints': ['api.dlazy.com', 'files.dlazy.com'], }, 'openclaw': { 'systemPrompt': 'When invoking this skill, call the searchOnlineAssets tool to query public asset libraries (Pixabay).' }, }

searchOnlineAssets

English · 中文

Online asset search tool: queries public stock libraries (Pixabay) for high-quality photos, illustrations, vectors and videos, and returns result metadata + URLs for use in the current workflow.

Trigger Keywords

  • searchOnlineAssets
  • pixabay
  • online asset search

Authentication

All requests require a dLazy API key, configured through the CLI:

dlazy auth set YOUR_API_KEY

The CLI saves the key in your user config directory (~/.dlazy/config.json on macOS/Linux, %USERPROFILE%\.dlazy\config.json on Windows), with file permissions restricted to your OS user account. You can also supply the key per-invocation via the DLAZY_API_KEY environment variable.

Getting Your API Key

  1. Sign in or create an account at dlazy.com
  2. Go to dlazy.com/dashboard/organization/api-key
  3. Copy the key shown in the API Key section

Each key is scoped to your dLazy organization and can be rotated or revoked at any time from the same dashboard.

About & Provenance

You can install on demand without persisting a global binary by running:

npx @dlazy/cli@1.0.9 <command>

Or, if you prefer a global install, the skill's metadata.clawdbot.install field declares the exact pinned version (npm install -g @dlazy/cli@1.0.9). Review the GitHub source before installing.

How It Works

This skill is a thin wrapper around the public Pixabay search API, exposed through the dLazy tool runtime. When you invoke it:

  • The query and filter parameters you provide are forwarded to the Pixabay API.
  • Pixabay returns a list of hits; the tool projects each entry to a stable shape (id, tags, preview / web-format / large URLs, dimensions).
  • The skill itself does not access network or filesystem resources beyond the Pixabay HTTP request handled inside the dLazy tool runtime.

This is the standard SaaS pattern; the asset URLs returned are hosted by Pixabay (pixabay.com), not by dLazy. See dlazy.com for the full service terms.

Usage

CRITICAL INSTRUCTION FOR AGENT: Invoke the searchOnlineAssets tool with a structured input object. This is an internal AI tool, not a CLI command — it runs inside the model's tool-call channel.

Input schema:

{
  query: string;                                            // required search keyword(s); prefer English for better recall
  imageType?: "all" | "photo" | "illustration" | "vector";  // default: "all"
  orientation?: "all" | "horizontal" | "vertical";          // default: "all"
  page?: number;                                            // default: 1
  perPage?: number;                                         // default: 10 (max 200 per Pixabay)
  lang?: string;                                            // default: "zh"; pass "en" for English-tagged matches
}

Behaviour notes:

  • safesearch is forced to true server-side; explicit content is filtered out.
  • Pixabay performs best with English keywords. Translate user-provided Chinese terms (e.g., "咖啡 → coffee") before issuing the request when accuracy matters.
  • Pick the most relevant largeImageURL (or matching video preview URL) and surface the URL plus tags to the user; do not dump the entire hits array.
  • If total === 0, tell the user no matching asset was found and suggest a broader keyword.

Output Format

{
  "total": 1234,
  "hits": [
    {
      "id": 5179107,
      "tags": "coffee, cup, latte art",
      "previewURL": "https://cdn.pixabay.com/.../preview.jpg",
      "webformatURL": "https://pixabay.com/.../webformat.jpg",
      "largeImageURL": "https://pixabay.com/.../large.jpg",
      "imageWidth": 6000,
      "imageHeight": 4000
    }
  ]
}

Examples

// Find horizontal photos of cityscapes
searchOnlineAssets({
  query: 'cityscape skyline',
  imageType: 'photo',
  orientation: 'horizontal',
  perPage: 6,
})
// Find vector icons for nature
searchOnlineAssets({
  query: 'leaf nature icon',
  imageType: 'vector',
  perPage: 12,
})

Error Handling

Code Error Type Example Message
401 Unauthorized (No API Key) Pixabay API key is not configured
502 Upstream API failed Pixabay API error: <statusText>
503 Network / fetch failed Failed to search images from Pixabay

AGENT CRITICAL INSTRUCTION:

  1. If the tool throws Pixabay API key is not configured, the workspace is missing its Pixabay credentials — inform the user and stop; do not retry.
  2. If Pixabay API error is returned, retry once with a simpler / shorter query before falling back to telling the user no result was found.

Tips

Visit https://dlazy.com for more information.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill