anp.invokeOpenRPC
Execute JSON-RPC 2.0 method calls on OpenRPC endpoints to interact with ANP agents, handling structured communication with required endpoint URLs and method names.
Instructions
使用 JSON-RPC 2.0 协议调用 OpenRPC 端点上的方法。此工具处理与暴露 OpenRPC 接口的 ANP 智能体的结构化交互。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endpoint | Yes | OpenRPC 端点 URL | |
id | No | 用于跟踪的可选请求 ID | |
method | Yes | 要调用的 RPC 方法名称 | |
params | No | 传递给方法的参数 |
Input Schema (JSON Schema)
{
"properties": {
"endpoint": {
"description": "OpenRPC 端点 URL",
"format": "uri",
"type": "string"
},
"id": {
"description": "用于跟踪的可选请求 ID",
"type": "string"
},
"method": {
"description": "要调用的 RPC 方法名称",
"type": "string"
},
"params": {
"default": {},
"description": "传递给方法的参数",
"type": "object"
}
},
"required": [
"endpoint",
"method"
],
"type": "object"
}