Share images, screenshots, and files from the AI workspace to users on the local network via HTTP. Use when the agent needs to show images, browser screenshots, or any files to the user and the current channel doesn't support inline media (e.g., webchat, CLI). Starts a lightweight Node.js static file server on LAN, managed by systemd. Drop files in the shared directory and send the user a clickable URL.
轻量级HTTP文件服务器,用于与本地网络上的用户共享AI助手生成的媒体文件(截图、图片、文档)。
许多AI助手渠道(网页聊天、命令行、SSH)无法显示内嵌图片。本技能通过在局域网内通过HTTP提供文件服务来解决这一问题——放入文件,发送链接即可。
bash
bash scripts/setup.sh
该命令将创建共享目录、安装服务器脚本、创建systemd用户服务并启动。
默认配置:
通过环境变量覆盖:
bash
MEDIAPORT=9090 MEDIAROOT=/tmp/media bash scripts/setup.sh
当需要向用户展示图片或文件时:
浏览器截图示例:
bash
cp /path/to/screenshot.jpg ~/projects/shared-media/my-screenshot.jpg
使用描述性文件名——目录为扁平结构且用户可见。
bash
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 lan-media-server-1776332972 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 lan-media-server-1776332972 技能
skillhub install lan-media-server-1776332972
文件大小: 3.92 KB | 发布时间: 2026-4-17 14:44