Install
openclaw skills install picsee-url-shortener-webQuickly shorten URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also view analytics and history. Use when user says "縮網址", "短網址", "shorten URL", or requests URL shortening.
openclaw skills install picsee-url-shortener-webQuickly shorten long URLs and generate QR codes via PicSee (picsee.io). After logging in, you can also access analytics and history records.
profile: "openclaw"file_path parameter - don't pass path: "" (empty string causes EISDIR errors)Core technique: URL-encode the link and append it to the query string, PicSee will auto-shorten it. Only generate QR code if user requests it (to save tokens).
URL-encode the long URL, then append it to https://picsee.io/?url=.
Use browser tool:
action: "open"
profile: "openclaw"
targetUrl: "https://picsee.io/?url=(URL-encoded long URL)"
URL encoding example:
https://example.com/path?a=1&b=2https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2https://picsee.io/?url=https%3A%2F%2Fexample.com%2Fpath%3Fa%3D1%26b%3D2Save the returned targetId - you'll need it for following steps.
Use browser tool to wait 3 seconds:
action: "act"
profile: "openclaw"
targetId: "(targetId from Step 1)"
request:
kind: "wait"
timeMs: 3000
Take a snapshot and extract the shortened URL from the page content:
action: "snapshot"
profile: "openclaw"
targetId: "(targetId from Step 1)"
refs: "aria"
Read the snapshot text and identify the shortened URL. PicSee displays the result prominently on the page after shortening completes. Look for:
If you can't find the short URL in the snapshot, wait another 3 seconds and retry. If still not found after 2 retries, use the fallback method (see below).
Reply with the shortened URL only. Do NOT generate QR code by default.
Reply in the same language as the user's original request. Example format in English:
Short URL: https://pse.is/xxxxx
Need QR code?
The language model will automatically translate this to the user's language if needed.
Wait for user response. If user confirms they want QR code, proceed to Step 5.
Only run this step if user explicitly requests QR code.
Use Python virtual environment to ensure qrcode package is available:
# Check if venv exists, create if not
if [ ! -d ~/openclaw_python_venv ]; then
python3 -m venv ~/openclaw_python_venv
source ~/openclaw_python_venv/bin/activate
pip install qrcode pillow
else
source ~/openclaw_python_venv/bin/activate
fi
# Generate QR code
python3 - <<'PY'
import qrcode
qr = qrcode.QRCode()
qr.add_data("THE_SHORT_URL_HERE")
qr.make(fit=True)
img = qr.make_image(fill_color="black", back_color="white")
img.save("/tmp/picsee_qr.png")
print("QR code saved")
PY
After generation, send the QR code image file using message tool with filePath: "/tmp/picsee_qr.png".
If Step 1's URL parameter method doesn't auto-shorten (page stays on homepage), use manual operation:
refs: "aria")img "PicSee!")path: "", only use file_path parameterpython3 --version (need 3.3+)