跳到正文
TakoAPI
返回技能列表

webcli

由 erdinccurebal 提供

Web & Frontend Development
460下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Browse the web, read page content, click buttons, fill forms, take screenshots, and get accessibility snapshots.

描述

该技能的功能

webcli is a headless browser CLI tool that lets agents navigate websites, read page content, interact with elements, and capture screenshots or PDFs. It runs a persistent browser daemon and exposes commands for clicks, form fills, accessibility snapshots, and JavaScript evaluation.

Unlike raw Playwright scripts, webcli exposes browser control as simple shell commands that an AI agent can chain without writing or managing code files.

何时使用

  • Scraping product prices from an e-commerce site
  • Filling and submitting a web form automatically
  • Taking screenshots of a dashboard for reporting
  • Logging into a web app and extracting account data
  • Testing a web UI flow without writing Playwright code

示例工作流

输入

User asks: go to example.com/login, log in with my credentials, and screenshot the dashboard

智能体
  1. 1

    Run webcli go https://example.com/login

  2. 2

    Run webcli snapshot to get accessibility refs for the email and password fields

  3. 3

    Run webcli fill @e1 'user@example.com' and webcli fill @e2 'password123'

  4. 4

    Run webcli click 'Log in' then webcli sleep 1500

  5. 5

    Run webcli screenshot -o dashboard.png to capture the result

输出

Screenshot saved to dashboard.png showing the authenticated dashboard page

前置要求

  • npx playwright install chromium (one-time browser binary install)

安装

clawhub install erdinccurebal/webcli

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接