---
title: "document.modelContext: definition and example | Agent MCP Directory"
description: "document.modelContext: The WebMCP entry point on the document object that holds registerTool, getTools and executeTool. Defined with a sourced example."
canonical: https://agentmcpdirectory.com/glossary/document-modelcontext
site: "Agent MCP Directory"
last_updated: 2026-11-04
section: "Glossary"
---

# document.modelContext: definition and example | Agent MCP Directory

> document.modelContext: The WebMCP entry point on the document object that holds registerTool, getTools and executeTool. Defined with a sourced example.

Source: https://agentmcpdirectory.com/glossary/document-modelcontext
Site: Agent MCP Directory
Last reviewed: 2026-11-04

# document.modelContext

document.modelContext: The WebMCP entry point on the document object that holds registerTool, getTools and executeTool. Example: Cloudflare Browser Run moved to document.modelContext on 28 Sep 2026. Next in the glossary is Dynamic Client Registration (DCR): RFC 7591 registration where a client POSTs to /register for credentials; deprecated in MCP 2026-07-28 and kept for compatibility.

## Definition

The WebMCP entry point on the document object that holds registerTool, getTools and executeTool.

## Example, with source

Cloudflare Browser Run moved to document.modelContext on 28 Sep 2026. ([developers.cloudflare.com](https://developers.cloudflare.com/changelog/post/2026-09-28-webmcp-api/), read 4 November 2026)

## Where it appears on this site

-   [WebMCP](https://agentmcpdirectory.com/standards/webmcp/)
-   [Tool descriptions and agent success](https://agentmcpdirectory.com/guides/tool-descriptions-and-agent-success/)

## Neighbouring terms

-   [Confused deputy](https://agentmcpdirectory.com/glossary/confused-deputy/): An attack where a proxy with its own credentials is tricked into acting for someone else; MCP security guidance addresses it for OAuth proxies.
-   [Dynamic Client Registration (DCR)](https://agentmcpdirectory.com/glossary/dynamic-client-registration/): RFC 7591 registration where a client POSTs to /register for credentials; deprecated in MCP 2026-07-28 and kept for compatibility.
-   [Elicitation](https://agentmcpdirectory.com/glossary/elicitation/): A way for a server to ask the user, through the client, for more information, now handled through multi round-trip requests.

Edition

4 November 2026

Method

[How rows are verified](https://agentmcpdirectory.com/method/)

Data

[CSV and JSON](https://agentmcpdirectory.com/data/)

Markdown

[This page as markdown](https://agentmcpdirectory.com/glossary/document-modelcontext/index.md)

## Sources

-   [Source for the document.modelContext example](https://developers.cloudflare.com/changelog/post/2026-09-28-webmcp-api/), read 4 November 2026

Last reviewed 4 November 2026
