Install
openclaw skills install @thebrecht/toui-shortenShorten URLs with toui.io and read their click stats. Use when the user wants to shorten a long URL, create a short link, make a tracking link, or check how many clicks a toui.io short code has received.
openclaw skills install @thebrecht/toui-shortenShorten long URLs with toui.io and read click stats. toui also runs a Telegram bot.
If you're connected to toui's MCP server, just call the tool shorten_url:
shorten_url({ "url": "<url to shorten>", "title": "optional title" })
It returns { short_url, code, qr_url } — hand short_url back to the user.
One-time setup:
openclaw mcp add toui --url https://mcp.toui.io --transport streamable-http --auth oauth
openclaw mcp login toui
Note: the authorization code contains a colon. When copying
codefrom the browser address bar, replace%3Aback with:before runningopenclaw mcp login toui --code <code>.
When not going through MCP, call the REST endpoint directly:
curl -X POST https://toui.io/api/v1/shorten \
-H "Authorization: Bearer $TOUI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"<url to shorten>","title":"optional"}'
Returns JSON with short_url and short_code. Create a shorten-scope key at https://toui.io/admin and set it as the TOUI_API_KEY environment variable.
GET https://toui.io/api/v1/urls/{code}/stats (needs a full-scope key).