Skip to content
AI & LLMs · Lesson 08 of 10 · Builds on Models in the browser: WebLLM and Transformers.js

WebMCP: let agents use your app

Register tools on your page with document.modelContext so an agent in the browser calls your own functions instead of clicking around, validate what it sends, mark consequential tools, and know who else can call them.