apply_scene_patch
ChatGPTApply and save bounded, validated element operations to an existing board. Creating a new diagram requires one open_canvas first; reuse its returned board.id. Use get_board_context to find existing target element ids when needed. If a card for this board is already open, do not call open_canvas again just to refresh it after a successful patch. Visible, connected viewing cards without drafts automatically load saved changes within about 5–30 seconds. Hidden or editing cards resume checks when eligible; preserve unsaved drafts. If no card is open and the user wants to see the result, call open_canvas(mode="view") once after saving. Saves use last-write-wins; concurrent edits can be overwritten. Returns no scene document. Default drawing style: Calm working whiteboard (calm-whiteboard-v1). Palette (fill/stroke): neutral: #e8dfd1/#6b5f50; input: #f0dfc8/#8f4a1a; processing: #d9e6ef/#2f566f; coreState: #e5dded/#6b4e86; waiting: #efe3c4/#8a5a1f; success: #dbeade/#2f6f59; blocked: #edccc7/#8a2d2a; warning: #f1d6cf/#9b3f38; tertiary: #ede6d8/#8a755b; inactive: #e6e0d6/#8a8174. Arrow stroke: #2f2a23; text: #2f2a23; fontFamily: 5; roughness: 0. open_canvas and get_board_context return the complete styleGuide in structuredContent and text. Consult it before generating elements. Use these defaults for new diagrams unless the user requests another style. Preserve the existing board style during small edits; do not restyle unrelated elements. Use a small repeated palette of muted fills paired with darker strokes. Map external/user/provider inputs to input, APIs/services/adapters to processing, orchestration/context to coreState, queues/pending work to waiting, completed results to success, login/failures to blocked, warnings/resets to warning, and disabled components to inactive with dashed strokes. Use ellipse starts/ends, rounded rectangle steps, diamonds only for branching decisions, dashed rectangles for responsibility boundaries, and free text for notes. Use ink-black arrows regardless of node color. Apply palette fill as backgroundColor and stroke as strokeColor; apply typography color as text strokeColor. These role names describe drawing intent, not additional patch fields. Use Excalifont (fontFamily 5), clean lines (roughness 0), full opacity, readable short labels, and consistent text hierarchy. Layout values are suggestions: align related nodes, leave room around labels, and avoid overlaps and crossing arrows. Bind labels with bindText and connectors with bindArrow. Do not draw color/shape legends unless the user asks. Explicit supported element style fields override server defaults. Defaults fill omitted fields on new elements only; existing elements are not recolored automatically. Canvas background is a new-board default, not an apply_scene_patch field.






