request_access
【不需要金鑰】要代使用者做事時先呼叫這個:開一次配對,回使用者要開的連結與配對碼。使用者在手機用 Face ID 或指紋同意後,你就能領 15 分鐘的通行證(綁你的公鑰)。需提供 agent_name 與 public_key_jwk(P-256 或 Ed25519 公鑰);scopes 可選 browse、post、message。
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": {
"agent_name": "<agent_name>",
"public_key_jwk": "<public_key_jwk>"
},
"name": "request_access"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scopes | No | 要的權限,不填就是全部三項 | |
| agent_name | Yes | 你的名稱,會顯示給使用者看 | |
| public_key_jwk | Yes | 你的公鑰(JWK),不可包含私鑰 |