← Back to Skills Marketplace
khurramjamil12

Autoglm File Upload

by khurramjamil12 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
40
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install autoglm-file-upload
Description
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...
README (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)
Usage Guidance
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install autoglm-file-upload
  3. After installation, invoke the skill by name or use /autoglm-file-upload
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug autoglm-file-upload
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 40 downloads so far.

How do I install Autoglm File Upload?

Run "/install autoglm-file-upload" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Autoglm File Upload free?

Yes, Autoglm File Upload is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Autoglm File Upload support?

Autoglm File Upload is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Autoglm File Upload?

It is built and maintained by khurramjamil12 (@khurramjamil12); the current version is v1.0.0.

💬 Comments