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 智能体的结构化交互。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"endpoint": "<endpoint>",
"method": "<method>"
},
"name": "anp.invokeOpenRPC"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endpoint | Yes | OpenRPC 端点 URL | |
| id | No | 用于跟踪的可选请求 ID | |
| method | Yes | 要调用的 RPC 方法名称 | |
| params | No | 传递给方法的参数 |