Existing documentation URL(s)
All code snippets in https://developers.cloudflare.com/browser-run/features/webmcp/ reference navigator.modelContext, however we're recently moved this API to document.modelContext: webmachinelearning/webmcp#184.
What changes are you suggesting?
While some experimental Chrome versions of the past still have the navigator.modelContext API, that is not what all new Chrome versions have, and is not what would ship, so it'd be great to update the docs to reference document.modelContext()!
Also note that registerTool() now returns a Promise, so it might be good to demonstrate awaiting it in the docs.
Additional information
No response
Existing documentation URL(s)
All code snippets in https://developers.cloudflare.com/browser-run/features/webmcp/ reference
navigator.modelContext, however we're recently moved this API todocument.modelContext: webmachinelearning/webmcp#184.What changes are you suggesting?
While some experimental Chrome versions of the past still have the
navigator.modelContextAPI, that is not what all new Chrome versions have, and is not what would ship, so it'd be great to update the docs to referencedocument.modelContext()!Also note that
registerTool()now returns a Promise, so it might be good to demonstrateawaiting it in the docs.Additional information
No response