Ask for, give or reject a doc's approval
approvalAs the user. request: ask people to approve the doc as it is now (the user needs Edit; "to" are names, "@Full Name" or "@First", each with Comment or Edit on the doc, at most 10), with "message", "due" (yyyy-mm-dd) and "lock" (nobody can change the doc until it's approved, rejected or cancelled). One open request a doc; they're told in the app. The version asked on is kept as a saved point in History. approve (a "reason" optional) or reject (a "reason" needed) the open request, as one of its approvers, on "version", the doc's version you read (get with "approvals" says it): a newer one refuses it, so read again and answer on the latest (to approve an older version, restore it first). Any rejection closes it, and it's approved once every approver has approved the latest version. cancel withdraws it (its requester, or whoever manages the doc). The token needs Publish or Everything.
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": {
"doc": "<doc>",
"action": "<action>"
},
"name": "approval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | request: who approves, by name ("@Mia Chen", "@Max"). | |
| doc | Yes | The doc's link or its code. | |
| due | No | request: when it's due, yyyy-mm-dd. | |
| lock | No | request: lock the doc while it's pending. | |
| action | Yes | request, approve, reject or cancel. | |
| reason | No | approve: an optional note; reject: what to change (needed). | |
| message | No | request: what to look at. | |
| version | No | approve, reject: the doc's version you read, from get with "approvals" (needed). |