Upgrade Pane
upgrade_paneRe-pin a live pane to update its HTML or switch to a different template version, preserving the URL. Schema compatibility is enforced unless forced.
Instructions
Re-pin a LIVE pane to swap its HTML (design) + event/input/record schemas in place — same URL, no new pane. Two ways: (1) pass html to EDIT AN INLINE PANE'S HTML in one call — the relay appends a fresh version with that HTML and re-pins (schemas you omit are inherited from the current version, so to change only the HTML pass only html); inline panes only. (2) pass template_version to re-pin to a version you already appended with the template tool (action: version) — for named/reusable templates. By default a strict schema-compat gate refuses an upgrade that would narrow the schema (returns schema_incompatible_upgrade + details.breaks); pass force:true to apply anyway. Returns { pane_id, template_version, upgraded, breaks, compat }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | INLINE EDIT: the new HTML. The relay appends a fresh template version with this HTML and re-pins the pane to it in one call — editing an INLINE pane's HTML in place (same id/URL), no separate version step needed. Any schema you don't pass below is inherited from the pane's current version, so to change only the HTML pass only `html`. Inline panes only; a named/reusable template must go through the `template` tool (action: version) + `template_version`. Mutually exclusive with `template_version`. | |
| force | No | Override the strict schema-compat gate (compat=force). Without it, an upgrade that would narrow the schema is refused with schema_incompatible_upgrade + details.breaks. | |
| pane_id | Yes | The pane id to re-pin. | |
| event_schema | No | New event schema for the `html` version. Omit to inherit. | |
| input_schema | No | New input schema for the `html` version. Omit to inherit. | |
| record_schema | No | New record schema for the `html` version. Omit to inherit. | |
| template_type | No | Type for the `html` version. Default: html-inline. | |
| template_version | No | Target version of the SAME template. Defaults to the template head's latest version. Mutually exclusive with `html`. | |
| template_record_schema | No | New template-level record schema for the `html` version. Omit to inherit. |