{"version":"0.43.0","id":"kanvas.planner.edit","operationId":"kanvas.planner.edit","title":"planner edit","requiredInputs":["sessionId","displayId"],"description":"PLANNER EDIT: add or replace items (upsertItems; same id replaces), remove items, change plannerView/anchorDate/categories, or discard pending proposals. Proposals that no longer apply are dropped and reported; item changes reopen a committed plan. 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":"Change plan items directly (plannerView includes three-day): add, replace or remove them, or change the view. Use upsertItems to add (new id) or replace (same id) items and removeItemIds to remove them; also plannerView, anchorDate, categories or discardProposals. Proposals that no longer apply are dropped and reported; item changes reopen a committed plan.","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_-]+$"},"upsertItems":{"description":"New id adds; same id replaces.","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_.:-]+$"},"title":{"type":"string","minLength":1,"maxLength":120},"start":{"type":"string","maxLength":40},"end":{"type":"string","maxLength":40},"allDay":{"description":"start and end are dates; end is exclusive. For a multi-day trip or conference use allDay:true with date-only bounds. Timed cross-midnight items occupy their full interval and can conflict with other timed items.","type":"boolean"},"category":{"type":"string","minLength":1,"maxLength":40},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"notes":{"type":"string","maxLength":500},"constraints":{"description":"Declared wishes; Kanvas only flags violations","type":"object","properties":{"notBefore":{"type":"string","maxLength":40},"deadline":{"type":"string","maxLength":40},"bufferAfterMinutes":{"type":"integer","minimum":1,"maximum":1440},"fixed":{"type":"boolean"}},"additionalProperties":false}},"required":["id","title","start","end"],"additionalProperties":false}},"removeItemIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_.:-]+$"}},"plannerView":{"type":"string","enum":["day","three-day","week","month"]},"anchorDate":{"description":"A date inside the period shown.","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"categories":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":40},"label":{"type":"string","minLength":1,"maxLength":60},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["id","label"],"additionalProperties":false}},"discardProposals":{"description":"Drop all pending proposals.","type":"boolean"}},"required":["sessionId","displayId"],"additionalProperties":false,"examples":[{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"planner-edit-1","upsertItems":[{"id":"tennis","title":"Tennis","start":"2026-11-08T15:00:00+01:00","end":"2026-11-08T16:00:00+01:00"}]}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.planner.edit","arguments":{"sessionId":"session-id","displayId":"display-id","expectedRevision":3,"requestId":"planner-edit-1","upsertItems":[{"id":"tennis","title":"Tennis","start":"2026-11-08T15:00:00+01:00","end":"2026-11-08T16:00:00+01:00"}]}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}