Skip to main content
Glama

Bowmark web data: LinkedIn, Amazon, YouTube, Reddit, Airbnb, Instagram

Steer an open page (jig)

jig_update
Idempotent

Change 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

NameRequiredDescriptionDefault
htmlNoReplace the whole page body (a single-file page).
slugNoRename the jig's link, the <slug> in bowmark.ai/jig/@<handle>/<slug>. The old link keeps working and redirects.
taskNoWhat the user asked for, in their words. The result then carries the rules earlier feedback taught for tasks like it.
editsNoFind/replace on a file (default index.html), applied in order.
filesNoWrite files of a project: { path: text }; a path set to null deletes it.
jigIdYesThe jig's id, as `jig_open` or `jig_list` returned it.
resetNoReset 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.
stateNoKeys to change in the page's state, merged into what is there.
titleNoA new title for the page.
mergedFromNoAfter 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.
replaceStateNoStart from {} instead of merging.

Output Schema

NameRequiredDescriptionDefault
okNoTrue when the change was applied; false on an error.
urlNoThe link to give the user: their tab is the live page.
htmlNoThe page body (single-file pages).
filesNoThe jig's source files and their sizes in bytes.
jigIdNoThe jig's id — pass it to every other `jig_*` tool.
notesNoAdvice about the page just written — fix what it names with `jig_update`.
stateNoThe page's current state — the JSON object `jig_update({ state })` changes.
titleNoThe page's title (fenced text when the jig is a copy of someone else's).
messageNoWhy the call failed, when `ok` is false.
versionNoThe jig's version; it goes up by one on every change.
untrustedNoPresent when this jig is a copy of someone else's: who wrote it, and how to treat its text.
updateAvailableNoSet when the published jig this copy came from has a newer version.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / task
      Added value: +{
      +  "description": "What the user asked for, in their words. The result then carries the rules earlier feedback taught for tasks like it.",
      +  "maxLength": 2000,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / html / description
      Added value: +"Replace the whole page body (a single-file page)."
    • addedInput schema / properties / jigId / description
      Added value: +"The jig's id, as `jig_open` or `jig_list` returned it."
    • addedInput schema / properties / state / description
      Added value: +"Keys to change in the page's state, merged into what is there."
    • addedInput schema / properties / title / description
      Added value: +"A new title for the page."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "files": {
      +      "description": "The jig's source files and their sizes in bytes.",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "bytes": {
      +            "type": "number"
      +          },
      +          "path": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "html": {
      +      "description": "The page body (single-file pages).",
      +      "type": "string"
      +    },
      +    "jigId": {
      +      "description": "The jig's id — pass it to every other `jig_*` tool.",
      +      "type": "string"
      +    },
      +    "message": {
      +      "description": "Why the call failed, when `ok` is false.",
      +      "type": "string"
      +    },
      +    "notes": {
      +      "description": "Advice about the page just written — fix what it names with `jig_update`."
      +    },
      +    "ok": {
      +      "description": "True when the change was applied; false on an error.",
      +      "type": "boolean"
      +    },
      +    "state": {
      +      "description": "The page's current state — the JSON object `jig_update({ state })` changes."
      +    },
      +    "title": {
      +      "description": "The page's title (fenced text when the jig is a copy of someone else's)."
      +    },
      +    "untrusted": {
      +      "description": "Present when this jig is a copy of someone else's: who wrote it, and how to treat its text."
      +    },
      +    "updateAvailable": {
      +      "description": "Set when the published jig this copy came from has a newer version."
      +    },
      +    "url": {
      +      "description": "The link to give the user: their tab is the live page.",
      +      "type": "string"
      +    },
      +    "version": {
      +      "description": "The jig's version; it goes up by one on every change.",
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / reset
      Added value: +{
      +  "description": "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.",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changed
    • changedInput schema / properties / edits / description
      Previous value: -"Find/replace on the current html, applied in order."New value: +"Find/replace on a file (default index.html), applied in order."
    • addedInput schema / properties / edits / items / properties / path
      Added value: +{
      +  "description": "The file; omitted means index.html.",
      +  "type": "string"
      +}
    • addedInput schema / properties / files
      Added value: +{
      +  "additionalProperties": {
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "description": "Write files of a project: { path: text }; a path set to null deletes it.",
      +  "type": "object"
      +}
  5. Changed1 schema field changed
    • changedInput schema / properties / slug / description
      Previous value: -"Rename the jig's link, bowmark.ai/jig/<slug>. The old link keeps working and redirects."New value: +"Rename the jig's link, the <slug> in bowmark.ai/jig/@<handle>/<slug>. The old link keeps working and redirects."
  6. Changed2 schema fields changed
    • addedInput schema / properties / mergedFrom
      Added value: +{
      +  "description": "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.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Rename the jig's link, bowmark.ai/jig/<slug>. The old link keeps working and redirects.",
      +  "maxLength": 60,
      +  "type": "string"
      +}
  7. Changed1 schema field changed
    • addedInput schema / properties / edits
      Added value: +{
      +  "description": "Find/replace on the current html, applied in order.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "find": {
      +        "type": "string"
      +      },
      +      "replace": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "find",
      +      "replace"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 50,
      +  "minItems": 1,
      +  "type": "array"
      +}
  8. Added

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare write-capable, non-destructive, idempotent; the description adds substantive behavior: a null state key removes the key, each `find` must occur exactly once, the open page refreshes itself within a few seconds, and a renamed slug leaves the old link redirecting. It also discloses that `reset` wipes every stored row while keeping html and link, which an agent could not infer from `destructiveHint: false` alone.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and dense: the four mutations come first, then the refresh caveat and the trigger condition. Slightly overstuffed with parenthetical clauses, but no sentence is filler and nothing is buried in a trailing aside.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter write tool with nested objects, the description covers the main mutation paths, the self-refresh gotcha, and the reset hazard; annotations and the output schema carry the rest. The only thin spot is the `mergedFrom` merge flow, which is named but not explained in prose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning the schema does not: state merges with null-as-delete, edits are applied in order against a default `index.html` unless a `path` picks the file, and `files` maps path to text with null deleting. `mergedFrom` is only named, not explained, which keeps it below a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource ('Change a page you opened with `jig_open`') and immediately enumerates the four mutation modes: state merge, html/title replacement, targeted `edits`, and project `files`. It is unmistakably distinct from `jig_open`, which the description names explicitly as the tool not to re-call.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger ('whenever the user asks, in chat, for the page to show something different'), an explicit prohibition ('do not call `jig_open` again'), and a gated instruction for the risky path ('Only when the user asks' on `reset`). The alternative to the expensive full-page resend is spelled out via `edits`.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.