{"version":"0.43.0","id":"kanvas.draft.review","operationId":"kanvas.draft.review","title":"draft review","requiredInputs":["sessionId","displayId"],"description":"DRAFT REVIEW: accept (apply to the text) or reject suggestions by id, or all remaining ones; other suggestions are re-anchored. Optionally set draftStatus, for example ready. Concurrency: expectedRevision is OPTIONAL stale-write guard. Supplying a stale guard rejects the call; omitting optional guards does not waive authorization or other preconditions. After a conflict, inspect the operation-specific error and read current authorized state before retrying; current-value fields vary by operation.","guidance":"Accept (apply) or reject draft suggestions by id, or all remaining ones. Accepted replacements change the text and the other suggestions are re-anchored. Optionally set draftStatus.","inputSchema":{"type":"object","properties":{"sessionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"displayId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"expectedRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"requestId":{"description":"Stable ID deduplicates retries; omission creates a fresh ID per call.","type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"accept":{"description":"Ids to accept (apply).","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_.:-]+$"}},"reject":{"description":"Ids to reject (discard).","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_.:-]+$"}},"all":{"description":"Decide every remaining one.","type":"string","enum":["accept","reject"]},"draftStatus":{"type":"string","enum":["drafting","reviewing","ready"]}},"required":["sessionId","displayId"],"additionalProperties":false,"examples":[{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"draft-review-1","accept":["s4-1"],"reject":["s4-2"]},{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"draft-review-2","all":"accept","draftStatus":"ready"}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.draft.review","arguments":{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"draft-review-1","accept":["s4-1"],"reject":["s4-2"]}}},{"tool":"kanvas_call","arguments":{"operationId":"kanvas.draft.review","arguments":{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"draft-review-2","all":"accept","draftStatus":"ready"}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}