AddSynapse: approve all drafts (preview card button)
approve_all_changesetsAddSynapse: Applies, one after the other, the pending drafts that the app's draft view listed under «Approve all», on behalf of the signed-in site owner or admin who pressed it. Requires ui_nonce, a single-use token that the server gives to that view in the result metadata and that names those exact drafts; without a valid one nothing happens.
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": {
"changeset_id": "<changeset_id>",
"ui_nonce": "<ui_nonce>"
},
"name": "approve_all_changesets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ui_nonce | Yes | Single-use token of the draft view's button. | |
| changeset_id | Yes | Change set id of the card whose button was pressed. |