← Back to Skills Marketplace
thebrecht

toui 縮網址

by thebrecht · GitHub ↗ · v1.0.0 · MIT-0
darwinlinux ✓ Security Clean
39
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install toui-shorten
Description
用 toui.io 縮短網址並查詢點擊統計。當使用者想把長網址變短、產生短連結/追蹤連結,或查詢某個 toui.io 短碼的點擊數時使用。
README (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_urlshort_code。到 \x3Chttps://toui.io/admin> 建一把 shorten scope 的 key,設成環境變數 TOUI_API_KEY

備註

  • 登入帳號建立的短連結永久有效。
  • 查點擊統計:MCP 工具僅建立(無 stats),REST 用 GET https://toui.io/api/v1/urls/{code}/stats(需 full scope key)。
  • 自訂短碼、品牌網域、進階分析為付費方案功能。
Usage Guidance
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.
Capability Tags
requires-oauth-tokenrequires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install toui-shorten
  3. After installation, invoke the skill by name or use /toui-shorten
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug toui-shorten
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is toui 縮網址?

用 toui.io 縮短網址並查詢點擊統計。當使用者想把長網址變短、產生短連結/追蹤連結,或查詢某個 toui.io 短碼的點擊數時使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 39 downloads so far.

How do I install toui 縮網址?

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

Is toui 縮網址 free?

Yes, toui 縮網址 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does toui 縮網址 support?

toui 縮網址 is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux).

Who created toui 縮網址?

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

💬 Comments