[{"data":1,"prerenderedAt":270},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fsdk\u002Fwebsite-sdk":3,"docs-nav":159},{"id":4,"title":5,"body":6,"description":151,"extension":152,"meta":153,"navigation":69,"order":154,"path":155,"seo":156,"stem":157,"__hash__":158},"docs\u002Fdocs\u002F4.sdk\u002F3.website-sdk.md","Website SDK — @4hum-ai\u002Fjawb-sdk",{"type":7,"value":8,"toc":149},"minimark",[9,29,32,122,142,145],[10,11,12,13,17,18,23,24,28],"p",{},"For ",[14,15,16],"strong",{},"website owners",", not for automating jawb itself (see the\n",[19,20,22],"a",{"href":21},"\u002Fdocs\u002Fsdk\u002Frust-sdk","Rust SDK"," for that). Lives in the separate ",[25,26,27],"code",{},"jawb-sdk"," repo.",[10,30,31],{},"Currently ships one helper:",[33,34,39],"pre",{"className":35,"code":36,"language":37,"meta":38,"style":38},"language-ts shiki shiki-themes github-light github-dark","import { declareWebMcpTools } from \"@4hum-ai\u002Fjawb-sdk\";\n\nconst tag = declareWebMcpTools([\n  { name: \"book_service\", description: \"Book a service appointment\" },\n]);\n\u002F\u002F -> \u003Cscript type=\"application\u002Fwebmcp+json\">{\"tools\":[...]}\u003C\u002Fscript>\n","ts","",[25,40,41,64,71,91,109,115],{"__ignoreMap":38},[42,43,46,50,54,57,61],"span",{"class":44,"line":45},"line",1,[42,47,49],{"class":48},"szBVR","import",[42,51,53],{"class":52},"sVt8B"," { declareWebMcpTools } ",[42,55,56],{"class":48},"from",[42,58,60],{"class":59},"sZZnC"," \"@4hum-ai\u002Fjawb-sdk\"",[42,62,63],{"class":52},";\n",[42,65,67],{"class":44,"line":66},2,[42,68,70],{"emptyLinePlaceholder":69},true,"\n",[42,72,74,77,81,84,88],{"class":44,"line":73},3,[42,75,76],{"class":48},"const",[42,78,80],{"class":79},"sj4cs"," tag",[42,82,83],{"class":48}," =",[42,85,87],{"class":86},"sScJk"," declareWebMcpTools",[42,89,90],{"class":52},"([\n",[42,92,94,97,100,103,106],{"class":44,"line":93},4,[42,95,96],{"class":52},"  { name: ",[42,98,99],{"class":59},"\"book_service\"",[42,101,102],{"class":52},", description: ",[42,104,105],{"class":59},"\"Book a service appointment\"",[42,107,108],{"class":52}," },\n",[42,110,112],{"class":44,"line":111},5,[42,113,114],{"class":52},"]);\n",[42,116,118],{"class":44,"line":117},6,[42,119,121],{"class":120},"sJ8bj","\u002F\u002F -> \u003Cscript type=\"application\u002Fwebmcp+json\">{\"tools\":[...]}\u003C\u002Fscript>\n",[10,123,124,125,128,129,132,133,136,137,141],{},"Inject the returned string into your page's ",[25,126,127],{},"\u003Chead>",". The helper escapes\nscript-unsafe characters, so a description containing ",[25,130,131],{},"\u003C\u002Fscript>"," cannot\nend the tag early. Agents read your tool names and descriptions, so keep\nthem accurate, and never put instructions aimed at the agent in them.\njawb-core's\n",[25,134,135],{},"tools"," crate discovers and parses this tag — see ",[19,138,140],{"href":139},"\u002Fdocs\u002Fwebmcp","WebMCP",".",[10,143,144],{},"The real scope of this SDK (merchant\u002Fcommerce integration) is a\nlater deliverable; this helper is the only piece implemented so far.",[146,147,148],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":38,"searchDepth":66,"depth":66,"links":150},[],"Declare WebMCP tools on your own site so agents can discover them.","md",{},null,"\u002Fdocs\u002Fsdk\u002Fwebsite-sdk",{"title":5,"description":151},"docs\u002F4.sdk\u002F3.website-sdk","b12V1OVeCjsmoHDxTvom--qPT8hU4zZC-sU2xhVF8jE",[160],{"title":161,"path":162,"stem":163,"children":164},"Documentation","\u002Fdocs","docs\u002F1.index",[165,166,170,174,178,200,242,252,256,258,262,266],{"title":161,"path":162,"stem":163},{"title":167,"path":168,"stem":169},"Protocol adapters","\u002Fdocs\u002Fprotocol","docs\u002F10.protocol",{"title":171,"path":172,"stem":173},"Extensions","\u002Fdocs\u002Fextensions","docs\u002F11.extensions",{"title":175,"path":176,"stem":177},"Roadmap and status","\u002Fdocs\u002Froadmap","docs\u002F12.roadmap",{"title":179,"path":180,"stem":181,"children":182},"Getting started","\u002Fdocs\u002Fgetting-started","docs\u002F2.getting-started\u002F1.index",[183,184,188,192,196],{"title":179,"path":180,"stem":181},{"title":185,"path":186,"stem":187},"Installation","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F2.getting-started\u002F2.installation",{"title":189,"path":190,"stem":191},"Desktop app","\u002Fdocs\u002Fgetting-started\u002Fdesktop-app","docs\u002F2.getting-started\u002F3.desktop-app",{"title":193,"path":194,"stem":195},"Running the daemon","\u002Fdocs\u002Fgetting-started\u002Frunning-the-daemon","docs\u002F2.getting-started\u002F4.running-the-daemon",{"title":197,"path":198,"stem":199},"Using the CLI","\u002Fdocs\u002Fgetting-started\u002Fusing-the-cli","docs\u002F2.getting-started\u002F5.using-the-cli",{"title":201,"path":202,"stem":203,"children":204},"CLI reference","\u002Fdocs\u002Fcli","docs\u002F3.cli\u002F1.index",[205,206,210,214,218,222,226,230,234,238],{"title":201,"path":202,"stem":203},{"title":207,"path":208,"stem":209},"JSON envelope and exit codes","\u002Fdocs\u002Fcli\u002Fjson-and-exit-codes","docs\u002F3.cli\u002F10.json-and-exit-codes",{"title":211,"path":212,"stem":213},"jawb status","\u002Fdocs\u002Fcli\u002Fstatus","docs\u002F3.cli\u002F2.status",{"title":215,"path":216,"stem":217},"Tabs, profiles and sessions","\u002Fdocs\u002Fcli\u002Ftabs-and-profiles","docs\u002F3.cli\u002F3.tabs-and-profiles",{"title":219,"path":220,"stem":221},"jawb observe [\u003Curl>] [--full] [--interactive-only] [--js]","\u002Fdocs\u002Fcli\u002Fobserve","docs\u002F3.cli\u002F4.observe",{"title":223,"path":224,"stem":225},"jawb read [--format md|text|json] [--element \u003Cid>] [--full] [--js]","\u002Fdocs\u002Fcli\u002Fread","docs\u002F3.cli\u002F5.read",{"title":227,"path":228,"stem":229},"Act commands","\u002Fdocs\u002Fcli\u002Fact","docs\u002F3.cli\u002F6.act",{"title":231,"path":232,"stem":233},"See commands","\u002Fdocs\u002Fcli\u002Fsee","docs\u002F3.cli\u002F7.see",{"title":235,"path":236,"stem":237},"Policy and confirmation","\u002Fdocs\u002Fcli\u002Fpolicy","docs\u002F3.cli\u002F8.policy",{"title":239,"path":240,"stem":241},"Install lifecycle and profile settings","\u002Fdocs\u002Fcli\u002Flifecycle","docs\u002F3.cli\u002F9.lifecycle",{"title":243,"path":244,"stem":245,"children":246},"SDK reference","\u002Fdocs\u002Fsdk","docs\u002F4.sdk\u002F1.index",[247,248,251],{"title":243,"path":244,"stem":245},{"title":249,"path":21,"stem":250},"Rust SDK — jawb-sdk-rust","docs\u002F4.sdk\u002F2.rust-sdk",{"title":5,"path":155,"stem":157},{"title":253,"path":254,"stem":255},"Configuration","\u002Fdocs\u002Fconfig","docs\u002F5.config",{"title":140,"path":139,"stem":257},"docs\u002F6.webmcp",{"title":259,"path":260,"stem":261},"Agents","\u002Fdocs\u002Fagents","docs\u002F7.agents",{"title":263,"path":264,"stem":265},"MCP server","\u002Fdocs\u002Fmcp","docs\u002F8.mcp",{"title":267,"path":268,"stem":269},"Security and trust","\u002Fdocs\u002Fsecurity","docs\u002F9.security",1792595702633]