360 Secure SkillHub
360 安全技能中心

File Uploader

核心功能是将本地图片、音频、视频、文档等多类型文件上传至Astron Claw Bridge服务器,生成公开下载URL。适合需获取本地文件外链、嵌入markdown/网页,或需下载链接的场景;仅查看文件时勿用。通过Python脚本调用,输入本地文件路径(可选会话ID),输出含文件名、类型、大小、会话ID及下载URL的结果,依赖requests包,配置自动读取。

jpengcheng523-netizen
jpengcheng523-netizen
热度 49.63
最近更新 2026-05-11 17:35:43
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add uploader
Metadata
name
uploader
description
Upload a local file to Astron Claw Bridge and return a public download URL.

uploader

Upload a local file to Astron Claw Bridge Server and return a publicly accessible download URL. Supports images, audio, video, documents and other file types.

When to Use

✅ USE this skill when:

  • When the user wants to obtain the file.
  • When the user needs a download URL for a local file (image, audio, video, document, etc.).
  • When the user wants to generate an external link for embedding in markdown or web pages.

When NOT to Use

❌ DON'T use this skill when:

  • When the user only wants to read or view a local file without uploading.

Parameters

Parameter Type Required Description
file string Yes Absolute or relative path to the local file to upload
--session-id string No Optional session ID for the upload

Commands

Basic Call

python3 scripts/upload_media.py '/path/to/file.png'

With Session ID

python3 scripts/upload_media.py '/path/to/file.png' --session-id 'my-session'

Examples

"Help me upload this image and get a link."

python3 scripts/upload_media.py './screenshot.png'

"Upload this PDF document."

python3 scripts/upload_media.py './report.pdf'

Response

Script outputs upload result to stdout:

fileName:    screenshot.png
mimeType:    image/png
fileSize:    102400
sessionId:   abc123
downloadUrl: http://.../<path>/<filename>

Notes

  • Host and token are auto-read from /root/.openclaw/openclaw.json, no need to pass at runtime
  • Requires requests package: pip install requests