Publish a page (jig) so others can get it
jig_publishPublish the user's jig (name it by jigId or your jig's jigSlug) as a listing others can get: it snapshots the page and state AS THEY ARE NOW into version N+1, and later edits stay private until you publish again. Call with dryRun: true first and show the user what would ship: every function the page calls (tagged read / write / pay), its sites, and the defaultState a copy starts with — blank anything personal with defaultState. A first publish needs the user's public handle (the @name in bowmark.ai/jigs/@/, permanent; ask them, or claim it earlier with jig_set_handle). visibility: "unlisted" is reachable by link only; "public" also appears in search. Returns the jig URL. To unlist a published jig or change its title, tagline or description, call again with the new values and detailsOnly: true: no new version is written.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | First publish only; made from the title when omitted. It cannot change. | |
| jigId | No | The jig's id. Give this or `jigSlug`. | |
| title | No | ||
| dryRun | No | Return exactly what would ship and write nothing. | |
| handle | No | The user's public handle, first publish only. | |
| jigSlug | No | The slug of the caller's OWN jig (from `jig_list`), instead of `jigId`. Not the listing `slug` below. | |
| tagline | No | ||
| changelog | No | What changed in this version. | |
| extraSites | No | Extra sites to list it under for discovery. The derived ones always stay. | |
| visibility | Yes | ||
| description | No | ||
| detailsOnly | No | Change only the listing (visibility, title, tagline, description); writes no version. Use it to unlist. | |
| screenshots | No | Up to 8 screenshots (png/jpeg/webp ≤ 5 MB) or a short clip (mp4/webm ≤ 20 MB) for the jig page, each a `url` or `base64` — give exactly one. YOU capture them (a screenshot of the page with sample data, never the user's private data); Bowmark never captures the user's live jig. | |
| defaultState | No | The state a copy starts with. Default: the jig's own default (its template's, or the version it was installed from), never its live state. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True when the jig was published. | |
| url | No | Where anyone can open it. | |
| message | No | Why the call failed, when `ok` is false. | |
| listingId | No | The published listing's id. | |
| versionNo | No | The listing version this publish made. |