# 核可

## approval_get

查這把權杖送出的核可單：成員核可或拒絕之前是 PENDING（72 小時後過期）；EXECUTED 附執行結果，FAILED 附錯誤。FAILED 的 error.code 是 APPROVAL_OUTCOME_UNKNOWN 時，事情可能已經做了，照 hint 先查。不用授權項目。url 是成員登入後處理這張核可單的網址；幾張的 id 可以用逗號接起來（?ids=<id>,<id>），最多 50 個。

給 Agent 的原文：

> Check an approval request sent by this token: PENDING until a member approves or rejects it (it expires after 72 hours).
> EXECUTED has the result (the same data the tool returns); FAILED has the error (the same error the tool returns).
> If FAILED with error.code APPROVAL_OUTCOME_UNKNOWN, the action may already have been done: follow error.hint and check first.
> url is the page where a member signs in to review this approval; to review several at once, join their ids with commas
> (?ids=<id>,<id>, up to 50). CANCELLED may have cancel_reason.
> token_approval_actions lists the token's permissions that were set to need approval for this call.

| 參數 | 型別 | 必填 | 說明 |
| --- | --- | --- | --- |
| `approval` | string | 必填 | Approval number (AP-000001) or id, from the approval returned by a write tool |

授權項目：不用

核可：不用
