Install
openclaw skills install playwright-serviceCapture web screenshots, retrieve page titles, and scrape text or HTML content from web pages using URL and optional CSS selectors.
openclaw skills install playwright-serviceDùng khi cần: chụp screenshot web, lấy tiêu đề trang, scrape nội dung text/HTML.
http://192.168.0.9:3000
Chụp ảnh một trang web và gửi vào Telegram.
curl -s -X POST http://192.168.0.9:3000/screenshot \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","fullPage":false}' \
-o /root/.openclaw/workspace/screenshot.jpg
fullPage: true → chụp toàn bộ trang (dài)fullPage: false → chụp viewport 1280x800 (mặc định)Sau khi có file, gửi vào Telegram group:
message tool: action=send, filePath=/root/.openclaw/workspace/screenshot.jpg, channel=telegram, target=-1003778746127
curl -s -X POST http://192.168.0.9:3000/title \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
Response: {"url":"...","title":"..."}
# Toàn bộ text
curl -s -X POST http://192.168.0.9:3000/scrape \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com"}'
# Theo CSS selector
curl -s -X POST http://192.168.0.9:3000/scrape \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","selector":"h1"}'
Response: {"url":"...","data":"..."}
waitForSelector/root/.openclaw/workspace/ trước khi gửi Telegram