Automate web browsers, scrape pages, search the web, and run AI prompts on live websites via HARPA AI Grid REST API
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install harpa-ai或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install harpa-ai⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/harpa-ai/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: harpa-grid description: Automate web browsers, scrape pages, search the web, and run AI prompts on live websites via HARPA AI Grid REST API user-invocable: true homepage: https://harpa.ai/grid/web-automation metadata: {"openclaw":{"emoji":"🌐","requires":{"anyBins":["curl","wget"],"env":["HARPA_API_KEY"]},"primaryEnv":"HARPA_API_KEY","homepage":"https://harpa.ai/grid/web-automation","skillKey":"harpa-grid"}} ---
HARPA Grid lets you orchestrate real web browsers remotely. You can scrape pages, search the web, run built-in or custom AI commands, and send AI prompts with full page context — all through a single REST endpoint.
The user must have:
HARPA_API_KEY environment variable.
If the user hasn't set up HARPA yet, direct them to: https://harpa.ai/grid/browser-automation-node-setup
Endpoint: POST https://api.harpa.ai/api/v1/grid
Auth: Authorization: Bearer $HARPA_API_KEY
Content-Type: application/json
Full reference: https://harpa.ai/grid/grid-rest-api-reference
---
Extract full page content (as markdown) or specific elements via CSS/XPath/text selectors.
Full page scrape:
curl -s -X POST https://api.harpa.ai/api/v1/grid \
-H "Authorization: Bearer $HARPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "scrape",
"url": "https://example.com",
"timeout": 15000
}'
Targeted element scrape (grab):
curl -s -X POST https://api.harpa.ai/api/v1/grid \
-H "Authorization: Bearer $HARPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "scrape",
"url": "https://example.com/products",
"grab": [
{
"selector": ".product-title",
"selectorType": "css",
"at": "all",
"take": "innerText",
"label": "titles"
},
{
"selector": ".product-price",
"selectorType": "css",
"at": "all",
"take": "innerText",
"label": "prices"
}
],
"timeout": 15000
}'
Grab fields:
| Field | Required | Default | Values |
|-------|----------|---------|--------|
| selector | yes | — | CSS (.class, #id), XPath (//h2), or text content |
| selectorType | no | auto | auto, css, xpath, text |
| at | no | first | all, first, last, or a number |
| take | no | innerText | innerText, textContent, innerHTML, outerHTML, href, value, id, className, attributes, styles, [attrName], (styleName) |
| label | no | data | Custom label for extracted data |
Perform a web search. Supports operators like site:, intitle:.
curl -s -X POST https://api.harpa.ai/api/v1/grid \
-H "Authorization: Bearer $HARPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "serp",
"query": "OpenClaw AI agent framework",
"timeout": 15000
}'
Execute one of 100+ built-in HARPA commands or a custom automation on a target page.
curl -s -X POST https://api.harpa.ai/api/v1/grid \
-H "Authorization: Bearer $HARPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "command",
"url": "https://example.com/article",
"name": "Extract data",
"inputs": "List all headings with their word counts",
"connection": "HARPA AI",
"resultParam": "message",
"timeout": 30000
}'
name — command name (e.g. "Summary", "Extract data", or any custom command)
inputs — pre-filled user inputs for multi-step commands
resultParam — HARPA parameter to return as result (default: "message")
connection — AI model to use (e.g. "HARPA AI", "gpt-4o", "claude-3.5-sonnet")
Send a custom AI prompt with page context. Use {{page}} to inject the page content.
curl -s -X POST https://api.harpa.ai/api/v1/grid \
-H "Authorization: Bearer $HARPA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "prompt",
"url": "https://example.com",
"prompt": "Analyze the current page and extract all contact information. Webpage: {{page}}",
"connection": "CHAT AUTO",
"timeout": 30000
}'
---
| Parameter | Required | Default | Description |
|-----------|----------|---------|-------------|
| action | yes | — | scrape, serp, command, or prompt |
| url | no | — | Target page URL (ignored by serp) |
| node | no | — | Node ID ("r2d2"), multiple ("r2d2 c3po"), first N ("5"), or all ("*") |
| timeout | no | 300000 | Max wait time in ms (max 5 minutes) |
| resultsWebhook | no | — | URL to POST results to asynchronously (retained 30 days) |
| connection | no | — | AI model for command/prompt actions |
node to use the default node
"node": "mynode" — target a specific node by ID
"node": "node1 node2" — target multiple nodes
"node": "3" — use first 3 available nodes
"node": "*" — broadcast to all nodes
Set resultsWebhook to receive results asynchronously. The action stays alive for up to 30 days, useful when target nodes are temporarily offline.
{
"action": "scrape",
"url": "https://example.com",
"resultsWebhook": "https://your-server.com/webhook",
"timeout": 15000
}
grab array with multiple selectors to extract structured data in a single request.
timeout (max 300000ms / 5 min) or use resultsWebhook.
{{page}} variable in prompts injects the full page content — use it to give AI context about the current page.
安装 HARPA AI 后,可以对 AI 说这些话来触发它
Help me get started with HARPA AI
Explains what HARPA AI does, walks through the setup, and runs a quick demo based on your current project
Use HARPA AI to automate web browsers, scrape pages, search the web, and run AI pro...
Invokes HARPA AI with the right parameters and returns the result directly in the conversation
What can I do with HARPA AI in my developer & devops workflow?
Lists the top use cases for HARPA AI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/harpa-ai/ 目录(个人级,所有项目可用),或 .claude/skills/harpa-ai/(项目级)。重启 AI 客户端后,用 /harpa-ai 主动调用,或让 AI 根据上下文自动发现并使用。
HARPA AI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
HARPA AI 可免费安装使用。请查阅仓库了解许可证信息。
Automate web browsers, scrape pages, search the web, and run AI prompts on live websites via HARPA AI Grid REST API
HARPA AI 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using HARPA AI
Identifies repetitive steps in your workflow and sets up HARPA AI to handle them automatically