Approve or reject pending immediate publications
decide_immediate_publicationsApplies approve or reject to supplied existing pending_approval publication jobs whose dispatchMode is immediate. Exact scheduleId, expectedUpdatedAt and expectedPublicationHash values correspond to list_pending_publications; get_context returns full Post text when a preview is truncated. The confirmation marker is specific to the selected decision and the request carries the user's choice for this exact batch. Approval applies SuperPost's existing workspace policy and releases the same queued job for immediate dispatch; rejection cancels that job. No new or replacement job is created. Revisions, content hashes, workspace ownership and current policy are rechecked, and results report each item independently. Each existing schedule is atomically resolved from pending_approval, so an exact retry reports already_resolved instead of resolving it again; idempotencyKey is a request correlation label, not a persisted decision ledger. Distinct batches have fresh keys and an exact retry reuses the same key. Requires the separate publish permission.
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": {
"idempotencyKey": "<idempotencyKey>",
"publications": "<publications>",
"decision": "<decision>",
"confirmation": "<confirmation>"
},
"name": "decide_immediate_publications"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| decision | Yes | ||
| confirmation | Yes | ||
| publications | Yes | ||
| idempotencyKey | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | ||
| decision | Yes | ||
| failedCount | Yes | ||
| dispatchMode | Yes | ||
| idempotencyKey | Yes | ||
| succeededCount | Yes | ||
| alreadyResolvedCount | Yes |