Skip to main content
Product agents that work with live business state need current records and product actions. Context providers connect them to sources such as web search, files, databases, Slack, Google Drive, and MCP servers. In default mode, context providers expose a source through query_<source> and, where enabled, update_<source>. The query surface can delegate source-specific work to a sub-agent. Set mode=ContextMode.tools when the calling agent should receive the provider’s underlying tools directly.

Query sources at run time

Context providers call the configured source when the agent invokes their tools. Freshness depends on the source API, backend, and any caching it applies. Providers can return source URIs or synthesized text; links and citations depend on the provider and its output. Vector retrieval remains useful for indexed corpora. Context providers are useful when a task needs source-specific navigation or current records from an external system.

Provider modes

Each provider ships a recommended tool surface. Override mode to trade tool count against direct control.

Sources

Read-only providers

For providers that support writes, write=False removes the update tool from the default surface. A read-only provider such as the web has no update tool. This setting does not change permissions for other clients or integrations that can access the same source.

Next steps

Developer Resources