Compare a complete alternative
document.compareCompares a complete alternative document when the person wants to review a rewrite, then accepts or rejects inspected differences or closes the comparison.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | open: a name for the comparison. | |
| text | No | open: the whole alternative document. | |
| agent | No | This assistant's display name. | |
| action | No | open (default), accept, reject or close. | |
| document | Yes | The MCP document capability from rapier.open. Keep it private and pass it to later calls. | |
| change_ids | No | accept or reject: the differences; none means every remaining one. | |
| operation_id | Yes | A fresh random id for this call (a UUID works). Resend it only to retry this call; the retry replays the recorded result. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| open | No | ||
| cause | No | ||
| items | No | ||
| closed | No | ||
| reason | No | ||
| changes | No | ||
| decided | No | ||
| outcome | Yes | ||
| visible | No | Present only when a local editor confirmed the comparison. Omitted for asynchronous hosted rendering; this is not editor presence. get_context reports presence. | |
| accepted | No | ||
| changeId | No | ||
| document | No | The MCP document capability from rapier.open. Keep it private and pass it to later calls. | |
| rejected | No | ||
| reviewId | No | ||
| compareId | No | ||
| editCount | No | ||
| remaining | No | ||
| structure | No | ||
| documentId | No | ||
| transaction | No | ||
| representation | No | ||
| documentRevision | No |