Browser-agent readiness

WebMCP Agent Tools

Zohar Online exposes an experimental WebMCP search tool on the homepage and reader tools on public reference pages so compatible browser agents can search the index, inspect the current daf, read visible text layers, search page segments, and navigate stable references.

Experimental layer

What WebMCP adds to Zohar pages

WebMCP does not embed Gemini or call a paid AI API. It declares browser-visible tools that an eligible user agent may call while the user has a Zohar Online page open.

Context

Current reference

Returns the open volume, division, daf or paragraph label, source labels, and stable URLs.

Text

Visible layers

Returns the primary and pointed Hebrew-Aramaic text segments already visible on the page.

Search

Page and site search

Finds visible segment matches on the current page or opens the public site search index.

Navigation

Stable references

Moves the tab to the previous reference, next reference, book start, or complete index.

Registered tools

Initial WebMCP tool set

The current implementation registers read-focused tools first: current reference context, text-layer retrieval, exact segment lookup, page segment search, and public site search. The only navigation tool changes the current browser tab and uses the same stable links already visible in the reader interface.

Tool output is generated from the live page DOM and the public search index. No private account data, server-side AI model, or hidden translation service is introduced by this WebMCP layer.

Tool

zohar_get_current_reference

Returns bibliographic context and navigation URLs for the open reference page.

Tool

zohar_get_text_layers

Returns visible Hebrew-Aramaic segments from the requested source layer.

Tool

zohar_get_segment

Finds a segment by visible reference or anchor id.

Tool

zohar_find_segments_on_page

Searches the currently open page without leaving the reference.

Tool

zohar_start_site_search

Opens the visible search interface and returns public index matches.

Tool

zohar_navigate_reference

Navigates to previous, next, book start, or all divisions by stable site URL.

Testing

How to test

In local Chrome testing, enable chrome://flags/#enable-webmcp-testing, relaunch Chrome, open a Zohar reference page, and inspect window.zoharWebMcp in DevTools. For production trials, register the domain in the Chrome WebMCP origin trial and store the issued token as the WEBMCP_ORIGIN_TRIAL_TOKEN Cloudflare Pages secret.

The homepage and reference pages under /zohar/ are served with cross-origin isolation headers and a Permissions-Policy that enables tools for the same origin. The scope remains limited so other pages, including contact verification flows, remain unaffected.