---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Read chat history from workflows and company agents

Built-in chat reads let workflows inspect messages without starting an agent task, within current chat permissions.

A workflow can now read a registered chat's messages or search chat history through built-in read-only actions. Your company agent can use the corresponding chat tools. Reading messages in a workflow does not start another agent task.

Tell the coding agent you build with to use these reads for a workflow that needs earlier messages before acting. Group history and search honor current membership or record-scoped read access, including on later pages; a posting grant alone does not grant history access.
