/install revertwtf-agent-api
revert.wtf Agent API Skill
Use this skill when an agent needs to explain an EVM/RPC/provider/wallet/AA/x402 error, resolve a selector, search the catalog, or integrate revert.wtf into a product.
Default Choice
- Prefer MCP when the agent runtime supports MCP.
- Prefer the website HTTP API when calling the hosted service from an agent or app backend.
- Prefer package subpaths for local code.
- Never import the full catalog-backed parser into browser/client bundles for one-off searches.
MCP Tools
Use bounded tools:
explain_errorfor raw errors, traces, JSON strings, revert bytes, and x402 payloads.search_catalogfor catalog discovery. It returns summaries withlimit,offset,totalMatches, andhasMore.get_erroronly aftersearch_catalogreturns a specific id.lookup_selectorfor 4-byte selectors.decode_revert_datafor raw revert bytes.explain_aa_errorfor AAxx and EntryPoint failures.search_blockscout_chainsandget_blockscout_chainfor Blockscout registry checks.
Do not request or construct an all-catalog dump. Page through summaries only when the user explicitly needs breadth.
Hosted HTTP API
POST JSON to the public web API from a server/agent context:
curl -s https://revert.wtf/api/explain \
-H "content-type: application/json" \
-d '{"raw":"{\"code\":-32000,\"message\":\"nonce too low\"}"}'
Useful endpoints:
POST /api/explainwith{ "raw": "..." }POST /api/revert-decodewith{ "data": "0x...", "abiText": "[...]" }POST /api/aa-decodewith{ "raw": "AA23 reverted or OOG" }POST /api/selectorwith{ "selector": "0x08c379a0" }POST /api/searchwith{ "query": "AA23", "limit": 20, "offset": 0 }
Inputs are capped for parsing. Do not paste private keys, seed phrases, access tokens, unreleased exploit details, or personal data.
Use /api/search for discovery and /api/explain for a specific raw failure.
Search returns summaries; fetch or explain the selected item instead of asking
for broad payloads.
Package Imports
Use precise subpaths:
import { explain } from "@revertwtf/parser/explain"; // server/API path
import { decodeRevertData } from "@revertwtf/parser/decode";
import { describePanic } from "@revertwtf/catalog/panic";
import { listKnownAACodes } from "@revertwtf/aa/parse";
import { searchCatalog } from "@revertwtf/search"; // server-side SQLite FTS
Browser/client bundles should use small helpers or call an API route. Full-data surfaces such as @revertwtf/catalog, @revertwtf/parser/explain, and @revertwtf/aa/explain belong on a server/API boundary.
For browser apps, prefer the lightweight SDK:
import { createRevertClient } from "@revertwtf/client";
const revert = createRevertClient();
const result = await revert.searchCatalog({ query: "x402 payment required", limit: 5 });
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install revertwtf-agent-api - 安装完成后,直接呼叫该 Skill 的名称或使用
/revertwtf-agent-api触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
revert.wtf Agent API Skill 是什么?
Use revert.wtf safely from agents, tools, browsers, or integrations through bounded HTTP APIs, MCP tools, and lightweight package subpaths without downloadin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 18 次。
如何安装 revert.wtf Agent API Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install revertwtf-agent-api」即可一键安装,无需额外配置。
revert.wtf Agent API Skill 是免费的吗?
是的,revert.wtf Agent API Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
revert.wtf Agent API Skill 支持哪些平台?
revert.wtf Agent API Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 revert.wtf Agent API Skill?
由 mrtdlgc(@mrtdlgc)开发并维护,当前版本 v0.1.0。