{"version":"0.43.0","id":"kanvas.draft.suggest","operationId":"kanvas.draft.suggest","title":"draft suggest","requiredInputs":["sessionId","displayId","suggestions"],"description":"DRAFT SUGGEST: actor attributed automatically; propose replacements without changing the text, anchored by start/end or by find (+occurrence). They render inline as struck-through original plus proposed text with the reason. Suggestions must not overlap; reusing an id replaces that suggestion. 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":"Propose inline replacements without changing the draft text. Anchor each by start/end or by find (+occurrence); it renders as struck-through original plus proposed text. Suggestions must not overlap; reusing an id replaces that suggestion.","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_-]+$"},"suggestions":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"description":"Reuse an id to replace that suggestion.","type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_.:-]+$"},"start":{"type":"integer","minimum":0,"maximum":100000},"end":{"type":"integer","minimum":0,"maximum":100000},"find":{"description":"Anchor text, instead of start/end.","type":"string","minLength":1,"maxLength":4000},"occurrence":{"type":"integer","minimum":1,"maximum":10000},"replacement":{"type":"string","maxLength":4000,"description":"Proposed text; empty proposes deletion."},"reason":{"type":"string","maxLength":500}},"required":["replacement"],"additionalProperties":false}},"replaceSuggestions":{"description":"Replace all existing suggestions.","type":"boolean"}},"required":["sessionId","displayId","suggestions"],"additionalProperties":false,"examples":[{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"draft-suggest-1","suggestions":[{"find":"asap","replacement":"by Friday","reason":"Give a concrete date"}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.draft.suggest","arguments":{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"draft-suggest-1","suggestions":[{"find":"asap","replacement":"by Friday","reason":"Give a concrete date"}]}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}