← 返回 Skills 市场
khurramjamil12

Autoglm File Upload

作者 khurramjamil12 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
40
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install autoglm-file-upload
功能描述
Use the AutoGLM Upload Mix API to upload local files such as images and documents, then obtain a file URL or resource ID for downstream API calls. The token...
使用说明 (SKILL.md)

AutoGLM File Upload Skill

Upload a local file to the AutoGLM server and return file resource information that can be used by other APIs.


Token Retrieval

When the script starts, it automatically sends an HTTP GET request to the local service to retrieve a token:

Item Value
URL http://127.0.0.1:18432/get_token
Method GET
Response Bearer xxx (used directly as the Authorization header)

If the returned token does not include the Bearer prefix, the script adds it automatically.


Upload Mix API

Item Value
URL https://autoglm-api.autoglm.ai/agentdr/v1/assistant/upload-mix
Method POST
Request body multipart/form-data, with the field name files

Signed headers (generated dynamically for each request):

  • X-Auth-Appid: 100003
  • X-Auth-TimeStamp: current Unix timestamp in seconds
  • X-Auth-Sign: MD5(100003 + "&" + timestamp + "&" + 38d2391985e2369a5fb8227d8e6cd5e5)

Run the Script

Use upload-mix.py in the same directory:

python upload-mix.py "\x3Clocal file path>"

Examples:

# Upload an image
python upload-mix.py "/path/to/image.jpg"

# Upload a document
python upload-mix.py "/path/to/document.pdf"

The script automatically detects the file's MIME type and includes it in the request.


Response Handling

Response Structure

{
  "code": 0,
  "msg": "SUCCESS",
  "time": 1773199477734,
  "trace": "78dd001f3ec04c37b6a1d58b5db70fce",
  "data": {
    "message": "",
    "oss_info": [
      {
        "filename": "SKILL.md",
        "oss_name": "auto_fly/8a4e6ab6-c2ab-4e88-b4af-fb62db9379af/SKILL.md",
        "oss_url": "https://autoglm-agent.aminer.cn/auto_fly/8a4e6ab6-c2ab-4e88-b4af-fb62db9379af/SKILL.md"
      }
    ]
  }
}

Output Requirements

1. Extract the file URL Use data.oss_info[0].oss_url as the uploaded file URL. It can be passed directly to downstream APIs such as the image_url parameter in image-recognition.

2. Typical follow-up flow

upload_mix (upload a local file) -> get the URL -> image_recognition (analyze the image)
安全使用建议
Install only if you intend to send selected local files to AutoGLM. Avoid using it on sensitive documents unless you trust AutoGLM and the local token provider at 127.0.0.1:18432; confirm the exact file path before running the script.
能力评估
Purpose & Capability
The stated purpose is uploading local images or documents to AutoGLM and returning upload metadata, and the script only implements that workflow.
Instruction Scope
The skill documents the local token endpoint, remote upload endpoint, and command usage, but it does not add an interactive confirmation or prominent privacy warning before upload.
Install Mechanism
No installer, package installation, background service, or self-modifying setup behavior was found; the artifact contains a markdown skill file and one Python script using standard library modules.
Credentials
Network upload and local token retrieval are proportionate to the advertised upload function, but users should understand that selected file contents and an authorization header are sent to AutoGLM.
Persistence & Privilege
No persistence, privilege escalation, scheduled execution, credential storage, destructive actions, or broad local indexing were found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install autoglm-file-upload
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /autoglm-file-upload 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the autoglm-file-upload skill. - Upload local files (images, documents, etc.) to the AutoGLM server and obtain a file URL or resource ID for downstream API use. - Automatically retrieves authorization tokens from a local service—no manual environment variable setup required. - Supports dynamic header signing and MIME type detection. - Includes a command-line script (upload-mix.py) for simple file uploads. - Provides clear instructions on extracting and using the returned file URL for follow-up API workflows.
元数据
Slug autoglm-file-upload
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Autoglm File Upload 是什么?

Use the AutoGLM Upload Mix API to upload local files such as images and documents, then obtain a file URL or resource ID for downstream API calls. The token... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。

如何安装 Autoglm File Upload?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install autoglm-file-upload」即可一键安装,无需额外配置。

Autoglm File Upload 是免费的吗?

是的,Autoglm File Upload 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Autoglm File Upload 支持哪些平台?

Autoglm File Upload 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Autoglm File Upload?

由 khurramjamil12(@khurramjamil12)开发并维护,当前版本 v1.0.0。

💬 留言讨论