Website SDK — @4hum-ai/jawb-sdk

Declare WebMCP tools on your own site so agents can discover them.

For website owners, not for automating jawb itself (see the Rust SDK for that). Lives in the separate jawb-sdk repo.

Currently ships one helper:

import { declareWebMcpTools } from "@4hum-ai/jawb-sdk";

const tag = declareWebMcpTools([
  { name: "book_service", description: "Book a service appointment" },
]);
// -> <script type="application/webmcp+json">{"tools":[...]}</script>

Inject the returned string into your page's <head>. The helper escapes script-unsafe characters, so a description containing </script> cannot end the tag early. Agents read your tool names and descriptions, so keep them accurate, and never put instructions aimed at the agent in them. jawb-core's tools crate discovers and parses this tag — see WebMCP.

The real scope of this SDK (merchant/commerce integration) is a later deliverable; this helper is the only piece implemented so far.