request_ui_consent
Requests a UI consent token before high-risk actions such as deleting homework, exams, or bulletins, broadcasting email, or batch importing scores. Use it to authorize destructive operations.
Instructions
申請高危險性操作(刪除作業/刪除測驗/刪除公告/廣播全體郵件/批次成績匯入)之使用者 UI 許可權杖 (Consent Token)。在進行破壞性操作前必須調用此工具取得授權權杖。
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": {
"action": "<action>",
"targetId": "<targetId>",
"reason": "<reason>"
},
"name": "request_ui_consent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 要申請授權的高危險動作名稱 | |
| reason | Yes | 執行此操作的業務理由或說明 | |
| targetId | Yes | 目標 ID(如作業 ID、測驗 ID、公告 ID) |