autoglm-file-upload

Upload local files to the AutoGLM Upload Mix endpoint and return resource URLs.

Updated May 4, 2026
One-click install
npx skills add https://github.com/234194027-cpu/xianclaw --skill autoglm-file-upload
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autoglm-file-upload
Source: https://github.com/234194027-cpu/xianclaw/tree/main/resources/skills/autoglm-file-upload
Command: npx skills add https://github.com/234194027-cpu/xianclaw --skill autoglm-file-upload

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It solves the hassle of manually uploading local images or documents to AutoGLM and then finding usable URLs for downstream AI actions.

Core Features & Use Cases

  • Local file upload: Uploads a local file (image, document, etc.) to AutoGLM using the Upload Mix endpoint and returns resource details.
  • Automatic token handling: Fetches an authorization token from the local service at http://127.0.0.1:18432/get_token and formats it as a Bearer token automatically.
  • Supports chained workflows: Produces an oss_url that can be directly used by later skills such as image recognition.

Quick Start

Upload your local file by running the script with the full file path, for example: python upload-mix.py "/path/to/your/file.jpg".

Frequently Asked Questions about autoglm-file-upload

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload local files to AutoGLM and get a URL for agent workflows?

To upload local files to AutoGLM, run the upload script with the full file path to send multipart/form-data to the Upload Mix endpoint, which returns a usable oss_url for downstream tasks.

How does AutoGLM handle authorization tokens for file uploads?

AutoGLM automatically retrieves an authorization token from the local service at http://127.0.0.1:18432/get_token and formats it as a Bearer token to authenticate your multipart/form-data file upload request.

What signed headers are needed for multipart/form-data file uploads to AutoGLM?

Signed headers require generating an MD5 hash over your app id, timestamp, and app key. You must include these signed headers in the request when sending files to the AutoGLM endpoint.

Can I use the uploaded image URL for downstream image recognition tasks?

Yes, the file upload process produces an oss_url that can be directly chained into subsequent API calls for downstream agent workflows like image recognition or document-centric tasks.

Do I need a local service running to get tokens for AutoGLM file uploads?

Yes, you must have the local service running at http://127.0.0.1:18432/get_token to fetch the Bearer token required for authorizing your file upload requests to the AutoGLM endpoint.