{"version":"0.43.0","id":"kanvas.publish","operationId":"kanvas.publish","title":"publish","requiredInputs":[],"description":"Show/display/chart/visualize requests, especially in voice, belong on KANVAS: use real source data and the intended authorized display without waiting to be asked twice. View fields (not data): title, showTitle, showCaption, showControls, actions. Publish quietly with requestId and content; returns session/display, URLs, updateId and scoped targetRef. Continue with targetRef or sessionId+displayIds. newSession:true starts another topic; optional sessionName. Resolve needs_target with its resolution ref; nothing was published. contextId must be reliable host context, never a transport/account ID. Read existing displays/revisions; kanvas_discover catalog help action search for \"getting started\" explains policy and consented viewer context. Limits: 1–64 displays, intent 1000 characters, context 12000, title 500, 8 actions, prepared view 2 MiB. Preserve actual source data: coordinates, URLs, code, conditions and exact numeric text are not invented or fetched. Translation templates need supplied sourceText, targetText and language labels. Omit redundant titles; showTitle:true opts in. Reuse requestId only for identical retries. Explain failures; use kanvas_call with operationId:\"kanvas.error.report\" and arguments:{…}. First use: provide the actual literal, clickable, copyable URL as text, including in voice mode; do not repeat it after every update. Setup returns targets[].viewerUrl/shortUrl and targetRef. Start with kanvas_call with operationId:\"kanvas.session.start\" and arguments:{…} and its bare startUrl when no receiver is open. For link fallback prefer shortUrl; viewerUrl only if none. Explicit sessionId+displayIds keeps the existing update-only result: reuse its known locator or use kanvas_call with operationId:\"kanvas.address.get\" and arguments:{…} as a fallback. needs_target is unresolved and has published nothing. Accepted/prepared is not browser-applied; do not repeat the link on every update. Read kanvas_discover catalog templates action get by exact template ID for unfamiliar fields; prefer prepared {version:1,template,data}. Publishing waits briefly for genuine per-display browser acknowledgements. Applied confirms the revision is on screen; report failures or unconfirmed reasons and inspect only when needed. Familiar native data needs no extra lookup: use source context/data + intent + templateHint, or a complete view. Literal transcription example arguments: {\"sessionId\":\"session-id\",\"displayIds\":[\"display-id\"],\"requestId\":\"transcript-1\",\"context\":\"Exact supplied words.\",\"intent\":\"Show these words verbatim.\",\"templateHint\":\"transcription\"}. Common native data shapes: fact {\"text\":\"Exact words.\"}; transcription {\"segments\":[{\"id\":\"s1\",\"text\":\"Exact words.\"}],\"status\":\"live\"}; table {\"columns\":[\"item\",\"amount\"],\"rows\":[{\"item\":\"A\",\"amount\":\"1.2300\"}]}. Loose tables can use data:{\"rows\":[{\"item\":\"A\",\"amount\":\"1.2300\"}]}; prose cannot replace missing rows. data is the template object, not a template-named wrapper. Valid explicitly hinted native data is deterministic; prose selection may use the interpreter. Inspect kanvas_call with operationId:\"kanvas.update.status\" and arguments:{…} for preparation versus delivery. Examples are inert syntax, not authorization or live facts.","guidance":"Show/chart/render on screen, including voice. First use: content + requestId → targetRef and URLs. Continue with targetRef or explicit sessionId+displayIds; needs_target requires a choice. Existing session: read current displays and revisions. Translation renders supplied source and target text only. Start with kanvas_discover catalog help action search for \"getting started\".","inputSchema":{"type":"object","properties":{"clientDetails":{"type":"object","properties":{"agent":{"type":"string","maxLength":240},"harness":{"type":"string","maxLength":240},"model":{"type":"string","maxLength":240},"effort_or_mode":{"type":"string","maxLength":240},"interaction_mode":{"type":"string","maxLength":240},"device":{"type":"string","maxLength":240},"other":{"type":"string","maxLength":1000},"guidance":{"description":"full (default) repeats saved guidance; concise sends it on first contact and changes only. This connection only, never account-wide. Stateless clients need a unique Kanvas-Connection-Id header or kanvas/connectionId tool _meta on every call.","type":"string","enum":["concise","full"]}},"additionalProperties":false,"description":"Optional unverified hints. Sharing helps adapt Kanvas, diagnose client/model issues and recognize session history. Omit unknowns."},"requestId":{"description":"Stable ID deduplicates retries; omission creates a fresh ID per call.","type":"string","minLength":1,"maxLength":128},"sessionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"displayIds":{"minItems":1,"maxItems":64,"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"uniqueItems":true},"sessionName":{"type":"string","minLength":1,"maxLength":160},"newSession":{"type":"boolean","const":true},"targetRef":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"contextId":{"type":"string","minLength":1,"maxLength":128},"resolution":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"sessionId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"displayIds":{"minItems":1,"maxItems":64,"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"uniqueItems":true},"newSession":{"type":"boolean","const":true}},"required":["ref"],"additionalProperties":false,"oneOf":[{"required":["sessionId"],"not":{"required":["newSession"]}},{"required":["newSession"],"not":{"anyOf":[{"required":["sessionId"]},{"required":["displayIds"]}]}}]},"context":{"type":"string","maxLength":12000},"intent":{"type":"string","maxLength":1000},"data":{},"datasetId":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"},"assetIds":{"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9_-]+$"}},"templateHint":{"type":"string","enum":["monitor-stream","message-board","task-list","colour","icon-picker","font-picker","tool-call-details","agents","welcome","split-screen","database-schema","qr","traffic-demo","satisfaction","game-board","signage","scene3d","molecule","venn","math","instrument","live-captions","keyboard-shortcuts","catalog-list","sing-along","seat-map","vocabulary","todays-special","menu-board","opening-hours","back-at","closed-sign","hiring","sale-poster","health-notice","custom-sign","kanban","flashcards","email","inbox","chat","cards","record-detail","bookmarks","tool-inventory","tool-detail","developer","devops","code-workspace","device-preview","architecture","sports-lineup","org-chart","flowchart","network","scoreboard","standings","tool-call-log","json","session-topology","devices","fact","number","chart","table","image-gallery","image","website","iframe","story-cards","list","progress","log","comparison","checklist","map","code","whiteboard","presentation","document","markdown","video","notifications","transcription","translation","form","schedule","roster","calendar","planner","poll","countdown","qa","overview","display-grid","settings","html","timeline","itinerary","product","weather","profile","kpi","quote","recipe","menu","leaderboard","status","procedure","join","drafting","clock","now-playing"]},"view":{"type":"object","properties":{"theme":{"type":"string","enum":["light","dark"]},"format":{"type":"object","properties":{"timeZone":{"type":"string","maxLength":100},"numberLocale":{"type":"string","maxLength":80},"unitSystem":{"type":"string","enum":["source","metric","imperial"]},"timeFormat":{"type":"string","enum":["locale","12h","24h"]},"dateFormat":{"type":"string","enum":["source","dmy","mdy","iso"]}},"additionalProperties":false},"selection":{"type":"object","properties":{"where":{"default":[],"maxItems":8,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":200},"op":{"type":"string","enum":["eq","ne","contains","lt","lte","gt","gte"]},"value":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":{"default":"auto","description":"auto compares numeric condition values numerically, including decimal strings; text is lexical. No currency parsing.","type":"string","enum":["auto","text","number"]}},"required":["field","op","value"],"additionalProperties":false}},"match":{"default":"all","type":"string","enum":["all","any"]},"sort":{"default":[],"maxItems":4,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":200},"direction":{"default":"asc","type":"string","enum":["asc","desc"]},"type":{"default":"text","type":"string","enum":["text","number"]}},"required":["field"],"additionalProperties":false}},"highlight":{"default":[],"maxItems":8,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","maxLength":200},"op":{"type":"string","enum":["eq","ne","contains","lt","lte","gt","gte"]},"value":{"anyOf":[{"type":"string","maxLength":4000},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"type":{"default":"auto","description":"auto compares numeric condition values numerically, including decimal strings; text is lexical. No currency parsing.","type":"string","enum":["auto","text","number"]}},"required":["field","op","value"],"additionalProperties":false}}},"additionalProperties":false},"version":{"type":"number","const":1},"template":{"type":"string","enum":["monitor-stream","message-board","task-list","colour","icon-picker","font-picker","tool-call-details","agents","welcome","split-screen","database-schema","qr","traffic-demo","satisfaction","game-board","signage","scene3d","molecule","venn","math","instrument","live-captions","keyboard-shortcuts","catalog-list","sing-along","seat-map","vocabulary","todays-special","menu-board","opening-hours","back-at","closed-sign","hiring","sale-poster","health-notice","custom-sign","kanban","flashcards","email","inbox","chat","cards","record-detail","bookmarks","tool-inventory","tool-detail","developer","devops","code-workspace","device-preview","architecture","sports-lineup","org-chart","flowchart","network","scoreboard","standings","tool-call-log","json","session-topology","devices","fact","number","chart","table","image-gallery","image","website","iframe","story-cards","list","progress","log","comparison","checklist","map","code","whiteboard","presentation","document","markdown","video","notifications","transcription","translation","form","schedule","roster","calendar","planner","poll","countdown","qa","overview","display-grid","settings","html","timeline","itinerary","product","weather","profile","kpi","quote","recipe","menu","leaderboard","status","procedure","join","drafting","clock","now-playing"]},"title":{"type":"string","maxLength":500},"showTitle":{"type":"boolean"},"showCaption":{"type":"boolean"},"showControls":{"type":"boolean"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"actions":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[a-zA-Z0-9_.:-]+$"},"label":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["button","choice","input"]},"options":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"placeholder":{"type":"string","maxLength":500}},"required":["id","label","kind"],"additionalProperties":false,"allOf":[{"if":{"properties":{"kind":{"const":"choice"}},"required":["kind"]},"then":{"required":["options"]}}]}}},"required":["version","template","data"],"additionalProperties":false}},"additionalProperties":false,"allOf":[{"if":{"required":["displayIds"]},"then":{"required":["sessionId"]}},{"not":{"required":["targetRef","sessionId"]}},{"not":{"required":["targetRef","displayIds"]}},{"not":{"required":["targetRef","newSession"]}},{"not":{"required":["targetRef","sessionName"]}},{"not":{"required":["targetRef","resolution"]}},{"not":{"required":["newSession","sessionId"]}},{"not":{"required":["newSession","displayIds"]}},{"not":{"required":["newSession","resolution"]}},{"not":{"required":["sessionName","sessionId"]}},{"not":{"required":["sessionName","displayIds"]}},{"not":{"required":["sessionName","resolution"]}},{"not":{"required":["resolution","displayIds"]}}],"examples":[{"requestId":"first-visual","templateHint":"fact","data":{"text":"Exact supplied sentence."}},{"requestId":"continue-visual","targetRef":"returned-target-ref","view":{"version":1,"template":"fact","data":{"text":"Exact supplied sentence."}}},{"sessionId":"session-id","displayIds":["display-id"],"requestId":"publish-1","view":{"version":1,"template":"fact","data":{"text":"Exact supplied sentence."}}},{"sessionId":"session-id","displayIds":["display-id"],"requestId":"transcribe-1","view":{"version":1,"template":"transcription","data":{"segments":[{"id":"segment-1","text":"Exact supplied words.","speaker":"Speaker A"}],"status":"live"}}}]},"annotations":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"examples":[{"tool":"kanvas_call","arguments":{"operationId":"kanvas.publish","arguments":{"requestId":"first-visual","templateHint":"fact","data":{"text":"Exact supplied sentence."}}}},{"tool":"kanvas_call","arguments":{"operationId":"kanvas.publish","arguments":{"requestId":"continue-visual","targetRef":"returned-target-ref","view":{"version":1,"template":"fact","data":{"text":"Exact supplied sentence."}}}}},{"tool":"kanvas_call","arguments":{"operationId":"kanvas.publish","arguments":{"sessionId":"session-id","displayIds":["display-id"],"requestId":"publish-1","view":{"version":1,"template":"fact","data":{"text":"Exact supplied sentence."}}}}},{"tool":"kanvas_call","arguments":{"operationId":"kanvas.publish","arguments":{"sessionId":"session-id","displayIds":["display-id"],"requestId":"transcribe-1","view":{"version":1,"template":"transcription","data":{"segments":[{"id":"segment-1","text":"Exact supplied words.","speaker":"Speaker A"}],"status":"live"}}}}}],"exampleNotice":"Examples are valid syntax with illustrative IDs and source data. Substitute live authorized IDs/revisions; examples never grant consent."}