OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
在通过OpenResponses工具或OpenClaw插件工具将CAPTCHAS与OpenClaw集成时,使用此技能。
设置环境变量:
请求头:
注意:
在调用网关/v1/responses端点时,使用OpenClaw的tools数组格式。
json
{
tools: [
{
type: function,
function: {
name: captchasagentverify,
description: 运行CAPTCHAS代理验证并返回决策(允许|拒绝|挑战)。,
parameters: {
type: object,
properties: {
site_key: {type: string},
action: {type: string},
signals: {type: object, additionalProperties: true},
capabilities: {
oneOf: [
{type: object, additionalProperties: true},
{type: array, items: {type: string}}
]
},
verificationmode: {type: string, enum: [backendlinked, agent_only]},
challengesource: {type: string, enum: [bank, aigenerated]},
input_type: {type: string, enum: [choice, image, behavioral]},
media_url: {type: string},
media_type: {type: string}
},
required: [],
additionalProperties: false
}
}
},
{
type: function,
function: {
name: captchasagentchallenge_complete,
description: 完成挑战并在通过时生成验证令牌。,
parameters: {
type: object,
properties: {
challenge_id: {type: string},
site_key: {type: string},
answer: {type: string}
},
required: [challenge_id, answer],
additionalProperties: false
}
}
},
{
type: function,
function: {
name: captchasagenttoken_verify,
description: 在执行敏感操作前验证不透明的CAPTCHAS令牌。,
parameters: {
type: object,
properties: {
token: {type: string},
site_key: {type: string},
domain: {type: string}
},
required: [token],
additionalProperties: false
}
}
}
]
}
使用api.registerTool(...)注册工具,参数使用与上述相同的JSON Schema。
示例:
js
api.registerTool({
name: captchasagentverify,
description: 运行CAPTCHAS代理验证并返回决策(允许|拒绝|挑战)。,
parameters: {
type: object,
properties: {
site_key: { type: string },
action: { type: string },
signals: { type: object, additionalProperties: true }
},
required: [],
additionalProperties: false
},
async execute(_id, params) {
return { content: [{ type: text, text: JSON.stringify(params) }] };
}
});
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 captchas-openclaw-1776350771 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 captchas-openclaw-1776350771 技能
skillhub install captchas-openclaw-1776350771
文件大小: 1.93 KB | 发布时间: 2026-4-17 16:02