anp.setAuth
Set up authentication for ANP agent communication by providing DID document and private key files, enabling secure document fetching and method invocation.
Instructions
设置 DID 认证上下文。使用本地 DID 文档和私钥文件建立认证,后续的 fetchDoc 和 invokeOpenRPC 调用将自动使用这些凭证。
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": {
"did_document_path": "<did_document_path>",
"did_private_key_path": "<did_private_key_path>"
},
"name": "anp.setAuth"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| did_document_path | Yes | DID 文档 JSON 文件的路径 | |
| did_private_key_path | Yes | DID 私钥 PEM 文件的路径 |