Steer an open page (jig)
jig_updateChange a page you opened with jig_open: merge state into its state (a key set to null is removed), replace its html or title, or change part of the html with edits ([{ find, replace }], each find exactly once) instead of resending the whole page. On a project, files writes files ({ path: text }, null deletes one) and an edit's path picks its file. The open page updates itself within a few seconds — do not call jig_open again. Use this whenever the user asks, in chat, for the page to show something different.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"jigId": "<jigId>"
},
"name": "jig_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Replace the whole page body (a single-file page). | |
| slug | No | Rename the jig's link, the <slug> in bowmark.ai/jig/@<handle>/<slug>. The old link keeps working and redirects. | |
| task | No | What the user asked for, in their words. The result then carries the rules earlier feedback taught for tasks like it. | |
| edits | No | Find/replace on a file (default index.html), applied in order. | |
| files | No | Write files of a project: { path: text }; a path set to null deletes it. | |
| jigId | Yes | The jig's id, as `jig_open` or `jig_list` returned it. | |
| reset | No | Reset jig: true sends nothing else. State goes back to the page's default and every stored row is deleted. The html and link stay. Only when the user asks. | |
| state | No | Keys to change in the page's state, merged into what is there. | |
| title | No | A new title for the page. | |
| mergedFrom | No | After merging an update from `jig_pull_update`: the `theirsVersion` you merged. Send it with the merged `html` (or `edits`); the copy is then based on that version, and any new functions it calls wait for the user's approval. | |
| replaceState | No | Start from {} instead of merging. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | True when the change was applied; false on an error. | |
| url | No | The link to give the user: their tab is the live page. | |
| html | No | The page body (single-file pages). | |
| files | No | The jig's source files and their sizes in bytes. | |
| jigId | No | The jig's id — pass it to every other `jig_*` tool. | |
| notes | No | Advice about the page just written — fix what it names with `jig_update`. | |
| state | No | The page's current state — the JSON object `jig_update({ state })` changes. | |
| title | No | The page's title (fenced text when the jig is a copy of someone else's). | |
| message | No | Why the call failed, when `ok` is false. | |
| version | No | The jig's version; it goes up by one on every change. | |
| untrusted | No | Present when this jig is a copy of someone else's: who wrote it, and how to treat its text. | |
| updateAvailable | No | Set when the published jig this copy came from has a newer version. |