qwen_agent/skills/support/static-hosting/SKILL.md
2026-05-26 17:43:12 +08:00

908 B

name description category
static-hosting Serve static HTML/CSS/JS/images from robot project directories via the built-in FastAPI static file server. Use when generating web pages, reports, or interactive content for a bot. Web Services

Static Hosting

Host static files (HTML, CSS, JS, images, fonts, etc.) under /workspace/ and get public URLs.

Usage

Write files to /workspace/, then run the script to get the public URL:

python3 {SKILL_DIR}/scripts/get_url.py <absolute_path>

Example:

python3 {SKILL_DIR}/scripts/get_url.py /workspace/index.html
# => https://api-dev.gptbase.ai/robot-assets/[bot-id]/index.html

Notes

  • Inside HTML, use relative paths to reference other assets (e.g. href="css/style.css")
  • /workspace/index.html is auto-served at the directory URL
  • All files under /robot-assets/ are publicly accessible, no authentication