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.
What each page registers, what each block of the program reads and writes, and how execution moves from the first page to the second.
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.
| Page | Registered tool | Reads (inputSchema) | Writes (outputSchema) |
|---|---|---|---|
| art-121-document-integrity-anchor.html | anchor_document_integrity | document_hash, claimed_timestamp, document_type, hash_algorithm | anchored, document_hash, document_type, timestamp_claim |
| art-122-timestamp-attestation-verifier.html | verify_timestamp_attestation | document_hash, presented_anchor, presented_timestamp, expected_algorithm | verified, 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.
List the steps of the document-integrity-anchor workflow and the WebMCP tool each step's page registers.
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.
{
"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"
]
}
}
}
}
]
}
]
}| Block | Reads | Writes |
|---|---|---|
| call anchor_tool | the two typed inputs, plus the literals "contract" and "sha256" | the anchor page's result, saved as r1 |
| get + path | r1's output_payload fields: document_hash and timestamp_claim | plain values for the next block to assemble |
| obj | the two reads above | the presented_anchor object step 2 requires: {document_hash, timestamp_claim} |
| onSite verifier | nothing on the current page | moves execution to the verifier page's tab for the whole body |
| call verify_tool | r1 fields, the assembled anchor, the literal "sha256" | the verifier page's verdict, saved as r2 |
| message | r2's four booleans | one 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.
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.
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.
The four reasons the run is deterministic, then the share string, the requirements and the published sample values for your own run.
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:
get path into a saved result. The values in step 2's call all come from step 1's declared output.startUrl. The router opens only http or https pages the sites declare.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.
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.
wmm1.tVXBbtpAEP2V1ZxayTZgKTnsrWrP7SHtpQihwZ7Y23h3rd2BxkL8ezU2GEPSqElbCcliefPm7XvjYQ8lxSKYlo13oOGOqVULha6ofYgKVemLrSXHqsZYK3SlKho0lkrFxlJktK3yTnFNxyLVYkWZ6olyZf2OomI_AJilQlqpHQVzb2iAD7w1FQ-xB0bCRg8dLXJRJ5NmhXfRRCZXdH0ZNpUPhms7QDP12SvrS2oU4wNF1WLgDBIwJWhA47Z2QyGmg9i0l9GlJVkvGNduOYJe7uGBOtBwuv1atEACDW6oAQ2fLlx5F2vMb251lmXvIYFY1GQR9B64awk0RA7GVXA4JHso6R63DYOGfJ7fpvPbNL_5upjruXy-Q3JsfDR5Pd570vzjdQAv9lwl4NDK0YchHzFtuPYkXkigDb4KaPvbY6iikD2VofeDS89qPCRXjk3Qlz9MkYPiPTSmZ_WOAxYsEIGux4DPmMFvMRR8KzXYNGIC7uhDBA1hAQmw9-LWEPS6_yYBbHzZXdzxieKKWB47DAPVIYEWuQa9BL_ldsvrFrvGYwnX110dEqDHlgqm8iXdYjZFcj2s1ycYv_nxH_SM6az7vF5LeF2-Ohwu5F9Mxt8QT06kye-Szc_JDkN8TrYvsBQjViQoeuSJrRLHul8RT5XmLyqdVK5OQ_kmoklln0xcj8uMX8t1WSx0x41avpZprJNoZV30Pnp3Z1hsjPLQJ1QAQchZ_-6ch_doyBJq5jbq2WxctVnhZ0WNxlUB23qGgdNFvkhPk5oax1QFw91xJ2c12wakC2Pgb0Gi_kekZ5feojlPxwlNJ39l6Yny7cL_jFleChn2ifPD8Ov9acUfT8ctMNpwDvIY2cmK7pridDq-nhNBz42DiAqmqgZL0XVf7kEvlxcCV6tn2v-0FvTi8As.59a99bde
| Value | Result | Comes from |
|---|---|---|
| document_hash | sha256:abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890 | the published fixture sample on the anchor page |
| claimed_timestamp | 2026-06-25T10:00:00Z | the same sample |
| step 1 verdict | anchored: true, timestamp_claim.standard: "eIDAS Art.41 / RFC 3161-aligned" | anchor page output |
| step 2 verdict | verified: true, hash_match: true, ts_consistent: true, algo_match: true | verifier 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.