← 返回 Skills 市场
39
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install toui-shorten
功能描述
用 toui.io 縮短網址並查詢點擊統計。當使用者想把長網址變短、產生短連結/追蹤連結,或查詢某個 toui.io 短碼的點擊數時使用。
使用说明 (SKILL.md)
toui 縮網址(toui.io)
用 toui.io 把長網址變短,並可查點擊統計。toui 也提供 LINE 與 Telegram 機器人。
兩種用法
A. 透過 toui MCP server(推薦,免 API key)
若已連線 toui 的 MCP server,直接呼叫工具 shorten_url:
shorten_url({ "url": "\x3C要縮的網址>", "title": "選填標題" })
回傳 { short_url, code, qr_url },把 short_url 交給使用者。
連線方式(一次性設定):
openclaw mcp add toui --url https://mcp.toui.io --transport streamable-http --auth oauth
openclaw mcp login toui
注意:授權碼含冒號,從瀏覽器網址列複製
code時要把%3A換回:再執行openclaw mcp login toui --code \x3Ccode>。
B. 透過 REST API(需 TOUI_API_KEY)
沒走 MCP 時直接打 REST:
curl -X POST https://toui.io/api/v1/shorten \
-H "Authorization: Bearer $TOUI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"\x3C要縮的網址>","title":"選填"}'
回傳 JSON 含 short_url、short_code。到 \x3Chttps://toui.io/admin> 建一把 shorten scope 的 key,設成環境變數 TOUI_API_KEY。
備註
- 登入帳號建立的短連結永久有效。
- 查點擊統計:MCP 工具僅建立(無 stats),REST 用
GET https://toui.io/api/v1/urls/{code}/stats(需fullscope key)。 - 自訂短碼、品牌網域、進階分析為付費方案功能。
安全使用建议
Install only if you are comfortable sending URLs you shorten to toui.io. Prefer the OAuth MCP setup or a TOUI_API_KEY with the narrowest needed scope; use full-scope keys only when you need statistics.
能力标签
能力评估
Purpose & Capability
The stated purpose is to shorten URLs and query toui.io click statistics, and the documented MCP and REST actions match that purpose.
Instruction Scope
The skill is scoped to user-requested URL shortening or stats lookup and does not contain role changes, hidden behavior, destructive commands, or unrelated data access instructions.
Install Mechanism
The artifact is a single SKILL.md file with no executable scripts; setup is limited to optional OpenClaw MCP OAuth login or using curl with TOUI_API_KEY.
Credentials
It sends submitted URLs and optional titles to toui.io and may use an API key or OAuth session, which is expected for a URL-shortening service but should be understood by the user.
Persistence & Privilege
OAuth login or an environment variable may persist credentials outside the skill text, but the artifact does not request background agents, broad local indexing, privilege escalation, or destructive persistence.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install toui-shorten - 安装完成后,直接呼叫该 Skill 的名称或使用
/toui-shorten触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
toui 縮網址 是什么?
用 toui.io 縮短網址並查詢點擊統計。當使用者想把長網址變短、產生短連結/追蹤連結,或查詢某個 toui.io 短碼的點擊數時使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。
如何安装 toui 縮網址?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install toui-shorten」即可一键安装,无需额外配置。
toui 縮網址 是免费的吗?
是的,toui 縮網址 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
toui 縮網址 支持哪些平台?
toui 縮網址 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。
谁开发了 toui 縮網址?
由 thebrecht(@thebrecht)开发并维护,当前版本 v1.0.0。
推荐 Skills