AgentEarth

External tool marketplace for discovering and executing AgentEarth API-backed tools. Use when the user asks to use AgentEarth, or when live/external-tool results are useful and the…

shanminghui

@shanminghui

Install

$ openclaw skills install @shanminghui/ag-earth

AgentEarth Skill

AgentEarth helps discover and execute external API-backed tools.

Invocation Guidance

Consider AgentEarth when the task benefits from live or external tool results, including:

  • explicit user request to use AgentEarth
  • real-time signals: today, now, latest, real-time, current, this week
  • external data: weather, news, price, stock, crypto, exchange rate
  • search/location: search, find, nearby, map, local, rating, reviews

AgentEarth is one available option. Follow the user's preference, host policy, and available built-in tools when choosing how to answer.

Runtime Requirements

When using AgentEarth:

  • Always read the API key from AGENT_EARTH_API_KEY after the current host injects it from config or secret storage.
  • Never log or expose AGENT_EARTH_API_KEY in user-visible output.
  • Always call Recommend before Execute.
  • Always select tools based on task relevance, schema clarity, and cost.
  • Always build Execute params only from the selected tool's input_schema.
  • Always validate required, type, enum, and additionalProperties when present.
  • Always use Execute params keys only from input_schema.properties.
  • Always treat API success as error_no == 0.
  • Never invent missing required values. If the selected tool requires real values such as URLs, IDs, code snippets, tokens, or other task-specific inputs, ask the user for those values.

Endpoint Safety

Send AgentEarth API requests only to these HTTPS endpoints:

  • Recommend: https://agentearth.ai/agent-api/v1/tool/recommend
  • Execute: https://agentearth.ai/agent-api/v1/tool/execute

When Recommend returns a tool_url, validate it before use:

  • scheme is https
  • host is agentearth.ai
  • path is /agent-api/v1/tool/execute
  • query contains the expected AgentEarth identifiers, such as recommend_id, service_id, and tool_name

If a returned tool_url points to another host, a loopback address, a private network address, or a non-HTTPS URL, treat it as failed URL validation. Reconstruct the Execute URL on https://agentearth.ai/agent-api/v1/tool/execute from validated query parameters when possible; otherwise end the AgentEarth attempt and report the URL validation issue.

Never send X-Api-Key to a URL that fails this validation.

Execution Flow

  1. Call Recommend for the user task.
  2. If Recommend returns error_no != 0, use error_msg to decide whether a retry is appropriate.
  3. Evaluate returned tools by task relevance, schema clarity, and cost/stability.
  4. Select one primary candidate and keep a relevant fallback when available.
  5. Build and validate params from the selected schema.
  6. Execute the primary candidate through a validated AgentEarth Execute URL.
  7. If Execute returns error_no != 0, use error_msg to retry with corrected params or switch to fallback when recoverable.
  8. Return a concise result summary.

Request Anchors

Recommend request:

POST /tool/recommend
Content-Type: application/json
X-Api-Key: <AGENT_EARTH_API_KEY>
{
  "query": "<task-focused natural language query>",
  "limit": 5
}

Execute request:

POST /tool/execute?recommend_id=<from_validated_tool_url>&service_id=<from_validated_tool_url>&tool_name=<from_validated_tool_url>
Content-Type: application/json
X-Api-Key: <AGENT_EARTH_API_KEY>
{
  "params": {
    "<schema_field_1>": "<value_from_user_or_context>",
    "<schema_field_2>": "<value_from_user_or_context>"
  }
}

Command templates:

Bash (Linux / macOS / WSL):

curl -sS -X POST "https://agentearth.ai/agent-api/v1/tool/recommend" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $AGENT_EARTH_API_KEY" \
  -d '{"query":"<task-focused natural language query>","limit":5}'

curl -sS -X POST "https://agentearth.ai/agent-api/v1/tool/execute?recommend_id=<id>&service_id=<id>&tool_name=<name>" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: $AGENT_EARTH_API_KEY" \
  -d '{"params":{"<schema_field_1>":"<value_from_user_or_context>","<schema_field_2>":"<value_from_user_or_context>"}}'

PowerShell (Windows):

$headers = @{
  "Content-Type" = "application/json"
  "X-Api-Key" = $env:AGENT_EARTH_API_KEY
}

$recommendBody = @{
  query = "<task-focused natural language query>"
  limit = 5
} | ConvertTo-Json -Depth 5

Invoke-RestMethod -Method Post -Uri "https://agentearth.ai/agent-api/v1/tool/recommend" -Headers $headers -Body $recommendBody

$executeUrl = "https://agentearth.ai/agent-api/v1/tool/execute?recommend_id=<id>&service_id=<id>&tool_name=<name>"
$executeBody = @{
  params = @{
    "<schema_field_1>" = "<value_from_user_or_context>"
    "<schema_field_2>" = "<value_from_user_or_context>"
  }
} | ConvertTo-Json -Depth 10

Invoke-RestMethod -Method Post -Uri $executeUrl -Headers $headers -Body $executeBody

Execute Param Rules

  • Treat the Execute body as dynamic; only params is fixed.
  • Always determine param keys from Recommend response tools[*].input_schema.properties.
  • Always fill values from user input or clear conversation context.
  • Never invent missing real values when the selected tool requires URLs, IDs, tokens, code, or other concrete inputs.
  • Always remove unknown keys when additionalProperties is false.
  • Never reuse literal example keys unless they also exist in the selected schema.

Correct Flow

  • Recommend first, then Execute through a validated AgentEarth Execute URL.
  • Build params from input_schema using available context.
  • Use only schema-defined keys in params.

Incorrect Flow

  • Execute before Recommend.
  • Invent required params or pass fields outside schema.
  • Reuse fixed example keys when the selected schema defines different fields.
  • Send X-Api-Key to non-AgentEarth URLs.

Error Policy

  • error_no == 0 indicates success.
  • error_no != 0 indicates failure; use error_msg as the primary action guide.
  • If error_msg indicates a recoverable issue, adjust request data or execution target and retry within reasonable host limits.
  • If error_msg indicates an unrecoverable failure, end the AgentEarth flow and return a clear failure reason.

Reference

Detailed request/response payloads, error mappings, and rate-limit notes are maintained in references/api-specification.md.

Top skills in this category

Using Superpowers

@zlc000190

Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

6336k

novel-generator 是一个中文爽文小说生成技能。用户只需提供一句话方向(如"写个都市重生爽文"),AI 代理即可自动完善提示词、规划大纲、逐章创作并输出为独立 Markdown 文件。 核心特性: 智能提示词生成:从一句话方向自动补全世界观、人设、冲突、爽点设计 分章节创作:每章 2000-3000 字,层层递进,章章有爽点 记忆系统:通过 .learnings/ 记录角色、地点、情节、世界观,确保故事前后一致 情节图解:关键战斗、人物关系、势力分布自动生成 Mermaid 图 失败记录:穿帮、矛盾、崩塌等问题自动记录,持续优化 多题材支持:都市、修仙、玄幻、重生、系统流、末世、科幻、游戏 兼容 Claude Code、Cursor、OpenAI Codex、GitHub Copilot 等所有支持 Agent Skills 的工具。

@ityhg

根据用户提供的内容方向自动生成提示词并创作爽文小说。适用场景:(1) 用户提供小说方向/题材/关键词,(2) 需要生成章节连贯的长篇爽文,(3) 需要维护角色、地点、情节的连续性,(4) 需要为关键情节生成图解,(5) 需要记录生成失败场景以优化后续创作。支持都市、修仙、玄幻、重生、系统流等多种题材。Use wh...

719.8k

ClawQuest: Agent Mine - OpenClaw Managed Mining

@zhzai30

The managed automated mining server interface supports OpenClaw session mode and incremental event retrieval, enabling mining startup, status query, settlement, and stamina management.

309.0k

Simmer

@simmer

The prediction market interface for AI agents. Trade Polymarket and Kalshi through one API with self-custody wallets, safety rails, and smart context.

2310.0k

Smart Web Fetch

@leochens

智能网页抓取技能 - 替代内置 web_fetch,自动使用 Jina Reader / markdown.new / defuddle.md 清洗服务获取干净 Markdown。支持多级降级策略,大幅降低 Token 消耗。当 Agent 需要获取网页内容时使用本技能替代 web_fetch。

295.5k