OpenChainGraph · Explainer Two steps, one share string, zero models

How WebMCP Macros runs one workflow

This estate publishes workflows whose steps are calculators on their own pages. WebMCP Macros, an independent open source Chrome extension by André Cipriani Bandarra (Apache-2.0), runs such a workflow as a small JSON program: the first page anchors a document hash and a claimed timestamp, the second page verifies that attestation, and a variable carries the first result to the second call. This page is written for a reader who has seen a form run in a browser and wants to see a workflow run end to end with no server and no model in the loop. It shows the two registrations, the program block by block with what each block reads and writes, the hop the program makes between the two pages, and a share string a reader can paste into the extension.

Presenter mode shows one step per screen. Arrow keys move, A toggles autoplay, Esc exits.
Same inputs give the same outputs. The program is plain JSON, the tools compute locally on their own pages, and the share string carries a checksum, so a reader can see exactly what a pasted macro will do before running it.
Part one · The workflow, the program and the hop

Two pages and one small program

What each page registers, what each block of the program reads and writes, and how execution moves from the first page to the second.

1
Step 1 · The workflow

The workflow and its two pages

The published workflow document-integrity-anchor has two steps. Step 1 runs on a page that anchors a document hash and a claimed timestamp into an electronic timestamp artifact. Step 2 runs on another page that verifies such an artifact: it re-checks the hash, the timestamp consistency and the algorithm, and reports four booleans. Each step's page registers its tool with the browser, and each registration declares an outputSchema naming exactly what the tool writes.

chaingraph/art-121-document-integrity-anchor.html tool: anchor_document_integrity reads: document_hash, claimed_timestamp,   document_type, hash_algorithm writes (outputSchema): anchored,   document_hash, document_type, timestamp_claim saved in r1 chaingraph/art-122-timestamp-attestation-verifier.html tool: verify_timestamp_attestation reads: document_hash, presented_anchor,   presented_timestamp, expected_algorithm writes (outputSchema): verified, hash_match,   ts_consistent, algo_match published workflow: document-integrity-anchor · step 1 feeds step 2 through the macro variable r1
PageRegistered toolReads (inputSchema)Writes (outputSchema)
art-121-document-integrity-anchor.htmlanchor_document_integritydocument_hash, claimed_timestamp, document_type, hash_algorithmanchored, document_hash, document_type, timestamp_claim
art-122-timestamp-attestation-verifier.htmlverify_timestamp_attestationdocument_hash, presented_anchor, presented_timestamp, expected_algorithmverified, hash_match, ts_consistent, algo_match

Both registrations share one shape: a name, a description, a title, the input schema, the output schema, a read-only hint, and an execute function that fills the page's own form and runs the page's own compute. The declared outputSchema is what the macro editor reads to offer the fields of a saved result, which is why this workflow demonstrates the handoff cleanly: the fields of step 1's result are named before step 2 is ever written.

Ask the graphread the published workflow
List the steps of the document-integrity-anchor workflow and the WebMCP tool each step's page registers.
Step 1: anchor_document_integrity on chaingraph/art-121-document-integrity-anchor.html. Step 2: verify_timestamp_attestation on chaingraph/art-122-timestamp-attestation-verifier.html.
the published workflow pageregistrations read from the two pages, November 2026
2
Step 2 · The program

The macro as a program of blocks

A macro is plain JSON: the pages it may touch (sites), the tools it calls (tools), the values a reader types (inputs), and a program of blocks that the extension's runner interprets. This is the whole demo program, and the table under it says what each block reads and writes.

The whole programmacro JSON
{
  "wmm": 1,
  "id": "ainumbers-anchor-verify-demo",
  "name": "Anchor and verify a document",
  "description": "Step 1 anchors a document hash and claimed timestamp on the anchor page. Step 2 moves to the attestation verifier page and checks the seal: hash match, timestamp consistency and algorithm match. No model takes part.",
  "sites": {
    "anchor": {
      "match": [
        "https://ainumbers.co/chaingraph/art-121-document-integrity-anchor.html"
      ],
      "startUrl": "https://ainumbers.co/chaingraph/art-121-document-integrity-anchor.html"
    },
    "verifier": {
      "match": [
        "https://ainumbers.co/chaingraph/art-122-timestamp-attestation-verifier.html"
      ],
      "startUrl": "https://ainumbers.co/chaingraph/art-122-timestamp-attestation-verifier.html"
    }
  },
  "tools": {
    "anchor_tool": {
      "site": "anchor",
      "name": "anchor_document_integrity"
    },
    "verify_tool": {
      "site": "verifier",
      "name": "verify_timestamp_attestation"
    }
  },
  "trigger": {
    "site": "anchor",
    "anyOf": [
      [
        "anchor_tool"
      ]
    ]
  },
  "inputs": [
    {
      "key": "document_hash",
      "label": "Document hash (sha256:...)",
      "schema": {
        "type": "string"
      }
    },
    {
      "key": "claimed_timestamp",
      "label": "Claimed timestamp",
      "schema": {
        "type": "string"
      },
      "default": "2026-06-25T10:00:00Z"
    }
  ],
  "program": [
    {
      "op": "call",
      "tool": "anchor_tool",
      "saveAs": "r1",
      "args": {
        "document_hash": {
          "input": "document_hash"
        },
        "claimed_timestamp": {
          "input": "claimed_timestamp"
        },
        "document_type": {
          "lit": "contract"
        },
        "hash_algorithm": {
          "lit": "sha256"
        }
      }
    },
    {
      "op": "onSite",
      "site": "verifier",
      "body": [
        {
          "op": "call",
          "tool": "verify_tool",
          "saveAs": "r2",
          "args": {
            "document_hash": {
              "get": {
                "var": "r1"
              },
              "path": [
                "output_payload",
                "document_hash"
              ]
            },
            "presented_anchor": {
              "obj": {
                "document_hash": {
                  "get": {
                    "var": "r1"
                  },
                  "path": [
                    "output_payload",
                    "document_hash"
                  ]
                },
                "timestamp_claim": {
                  "get": {
                    "var": "r1"
                  },
                  "path": [
                    "output_payload",
                    "timestamp_claim"
                  ]
                }
              }
            },
            "presented_timestamp": {
              "get": {
                "var": "r1"
              },
              "path": [
                "output_payload",
                "timestamp_claim",
                "timestamp"
              ]
            },
            "expected_algorithm": {
              "lit": "sha256"
            }
          }
        },
        {
          "op": "message",
          "text": {
            "obj": {
              "verified": {
                "get": {
                  "var": "r2"
                },
                "path": [
                  "output_payload",
                  "verified"
                ]
              },
              "hash_match": {
                "get": {
                  "var": "r2"
                },
                "path": [
                  "output_payload",
                  "hash_match"
                ]
              },
              "ts_consistent": {
                "get": {
                  "var": "r2"
                },
                "path": [
                  "output_payload",
                  "ts_consistent"
                ]
              },
              "algo_match": {
                "get": {
                  "var": "r2"
                },
                "path": [
                  "output_payload",
                  "algo_match"
                ]
              }
            }
          }
        }
      ]
    }
  ]
}
BlockReadsWrites
call anchor_toolthe two typed inputs, plus the literals "contract" and "sha256"the anchor page's result, saved as r1
get + pathr1's output_payload fields: document_hash and timestamp_claimplain values for the next block to assemble
objthe two reads abovethe presented_anchor object step 2 requires: {document_hash, timestamp_claim}
onSite verifiernothing on the current pagemoves execution to the verifier page's tab for the whole body
call verify_toolr1 fields, the assembled anchor, the literal "sha256"the verifier page's verdict, saved as r2
messager2's four booleansone line in the extension's run view

Variables belong to the whole run, so r1 saved on the first page is readable inside the onSite body on the second page; that sharing is what lets a value cross between pages. A procedure is different by design: it sees only its parameters and its own variables. A missing key in a get reads as null rather than failing, so the program's shape is stable even when a page returns less than expected.

3
Step 3 · The hop

How the program moves between pages

Each of the two tools lives on its own document, so the program has to move. It does: an onSite block hands execution to the named site, and the extension's tab router finds that site's page. The run itself lives in the extension's background service worker, one run per starting tab, so the run survives the move.

ainumbers.co art-121 anchor · step 1 done, r1 saved art-122 verifier · opened by the run the program's variables ride along: r1.output_payload.document_hash r1.output_payload.timestamp_claim WebMCP Macros the run lives in its background worker the hop 1. a tab whose URL matches the site 2. else a new tab at startUrl http or https pages only then it waits for the fresh page to report its tools a call whose tool is registered on another site is refused with an error naming that site

Concretely: each site in the macro names its page with a URL match list and an optional startUrl. When the program enters onSite verifier, the router first looks for an open tab whose URL matches, then opens a new tab at the declared startUrl. The second call waits for the fresh page to report its tools before it runs, so a slow load delays the step instead of failing it, and a page that never reports fails the run with a message that says so. The router opens only the pages the sites declare, and only http or https, so a shared macro cannot steer the browser anywhere else.

tab routerrun hostsource read November 2026
Part two · Why it works, then your turn

Why the run needs no model

The four reasons the run is deterministic, then the share string, the requirements and the published sample values for your own run.

4
Step 4 · The plain part

Why no model is needed here

Nothing in the run asks a model anything. The program is data, the runner interprets it, and the two tools compute. Each stage of the run is a plain lookup or a pure function:

  1. The trigger is a list lookup: the extension offers the macro when a page's tool list contains the named tool from the macro's trigger set.
  2. Every argument names its source: a typed input, a literal, or a get path into a saved result. The values in step 2's call all come from step 1's declared output.
  3. The hop names its destination: a URL match list and, when no tab matches, the site's declared startUrl. The router opens only http or https pages the sites declare.
  4. The verdicts are computed: each page runs its own kernel over its declared inputs, and the verifier reports the four booleans its outputSchema named.

Two more properties come from the format rather than the workflow. Every tool call and every loop iteration counts against a step limit (3000 by default), so a runaway shared program ends on its own. And a share string carries a checksum over its JSON: an altered string is refused, and a string from a newer format version is refused with a message rather than misread.

Determinism is the point: the kernels behind both pages are pure functions of their declared inputs, so the same paste runs the same steps and returns the same verdicts on every run.
5
Step 5 · Your turn

Run it yourself

The string below is the whole macro: the prefix names the format version, the payload is a compressed, key-sorted encoding of the JSON shown in step 2, and the tail is a checksum over that JSON. Paste it into the extension's importer, open the anchor page, and run.

The share stringwmm1
wmm1.tVXBbtpAEP2V1ZxayTZgKTnsrWrP7SHtpQihwZ7Y23h3rd2BxkL8ezU2GEPSqElbCcliefPm7XvjYQ8lxSKYlo13oOGOqVULha6ofYgKVemLrSXHqsZYK3SlKho0lkrFxlJktK3yTnFNxyLVYkWZ6olyZf2OomI_AJilQlqpHQVzb2iAD7w1FQ-xB0bCRg8dLXJRJ5NmhXfRRCZXdH0ZNpUPhms7QDP12SvrS2oU4wNF1WLgDBIwJWhA47Z2QyGmg9i0l9GlJVkvGNduOYJe7uGBOtBwuv1atEACDW6oAQ2fLlx5F2vMb251lmXvIYFY1GQR9B64awk0RA7GVXA4JHso6R63DYOGfJ7fpvPbNL_5upjruXy-Q3JsfDR5Pd570vzjdQAv9lwl4NDK0YchHzFtuPYkXkigDb4KaPvbY6iikD2VofeDS89qPCRXjk3Qlz9MkYPiPTSmZ_WOAxYsEIGux4DPmMFvMRR8KzXYNGIC7uhDBA1hAQmw9-LWEPS6_yYBbHzZXdzxieKKWB47DAPVIYEWuQa9BL_ldsvrFrvGYwnX110dEqDHlgqm8iXdYjZFcj2s1ycYv_nxH_SM6az7vF5LeF2-Ohwu5F9Mxt8QT06kye-Szc_JDkN8TrYvsBQjViQoeuSJrRLHul8RT5XmLyqdVK5OQ_kmoklln0xcj8uMX8t1WSx0x41avpZprJNoZV30Pnp3Z1hsjPLQJ1QAQchZ_-6ch_doyBJq5jbq2WxctVnhZ0WNxlUB23qGgdNFvkhPk5oax1QFw91xJ2c12wakC2Pgb0Gi_kekZ5feojlPxwlNJ39l6Yny7cL_jFleChn2ifPD8Ov9acUfT8ctMNpwDvIY2cmK7pridDq-nhNBz42DiAqmqgZL0XVf7kEvlxcCV6tn2v-0FvTi8As.59a99bde
  1. Chrome 149 or later: both pages carry a first-party origin trial token, so the browser's model context is on without a flag. The WebMCP testing flag works too.
  2. Load the unpacked extension from its repository, following its README.
  3. Import the share string, then open the anchor page and start the macro. The two inputs are the document hash and the claimed timestamp.
  4. When the program reaches the verifier step, the extension opens the verifier page in a second tab and finishes there, with a message showing the four booleans.
ValueResultComes from
document_hashsha256:abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890the published fixture sample on the anchor page
claimed_timestamp2026-06-25T10:00:00Zthe same sample
step 1 verdictanchored: true, timestamp_claim.standard: "eIDAS Art.41 / RFC 3161-aligned"anchor page output
step 2 verdictverified: true, hash_match: true, ts_consistent: true, algo_match: trueverifier page output on that sample

Those values are the published sample vectors behind both pages, so a reader can re-derive them without the extension: each page's fixtures pin the inputs and the outputs above. Running the macro with the same two inputs walks the same steps in the browser and ends at the same four booleans.

🔒 All inputs are processed locally in your browser. No data is transmitted. Do not enter real personal data — use synthetic or anonymised inputs only.