{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["platform-badges","admonition","img"]},"redocly_category":"AI","product_name":"Treasure AI Studio","type":"markdown"},"seo":{"title":"What an Agent Channel Chat Can Reach","description":"What a Treasure AI Studio chat created through an Agent Channel can read and write, what its callers can send, and which limits and credits apply.","siteUrl":"https://docs.treasure.ai","image":"/assets/treasure-ai-social-preview.e6fefb35676f6da91c2d1bc783bd39e618e7af2b1ad3aa52a96ae69d72e700fe.b1bff462.png","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"what-an-agent-channel-chat-can-reach","__idx":0},"children":["What an Agent Channel Chat Can Reach"]},{"$$mdtype":"Tag","name":"PlatformBadges","attributes":{"platforms":["Web","Desktop"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A chat created through an ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/"},"children":["Agent Channel"]}," that runs as an executor is an ordinary Treasure AI Studio chat with two things changed: its workspace is disposable and holds one shared work folder read-only, and only a short, fixed set of instructions is reachable from outside — \"send this prompt\" and \"stop\" through an SDK App, the six MCP tools through an MCP Endpoint. For such a chat, everything else — the tools, the connections, the credits — is the executor's, exactly as if they had started the chat themselves."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read this page before you open a channel to an application whose users you do not control, or hand an MCP Endpoint's token to a team. It states both halves of the boundary: what a channel chat is prevented from doing, and what it is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["not"]}," prevented from doing."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"This page covers channels that run as an executor"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Everything below applies to SDK Apps and static-token MCP Endpoints. A chat started through an ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth"},"children":["OAuth MCP Endpoint"]}," is different: it is the connected person's own ordinary Studio chat, with their work folders, home directory, and permissions, and it can change files as their own chats can. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-oauth#the-chats-are-the-persons-own-studio-chats"},"children":["The Chats Are the Person's Own Studio Chats"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A chat started from a ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/slack-bots"},"children":["Slack bot"]}," runs differently again. It runs as the person who linked their Slack account, reads its one shared work folder read-only, and writes only to its own working area. It is not a chat of the bot's executor, and the executor's credits are not used. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/slack-chat#what-a-bot-chat-can-reach"},"children":["Using a Slack Bot"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"the-workspace-is-one-folder-read-only-and-disposable","__idx":1},"children":["The Workspace Is One Folder, Read-Only, and Disposable"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A channel chat works inside the channel's shared work folder. The agent can read every file in it and cannot change any of them. Alongside it, the chat gets a writable scratch area for the files it produces while working."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"32%","data-label":"What"},"children":["What "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"68%","data-label":"In a Channel Chat"},"children":["In a Channel Chat "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The shared work folder"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Readable, never writable. Files that members put there through Treasure AI Studio are visible to the agent; nothing the agent does changes them"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scratch space"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["A writable area inside the chat's workspace, created with the chat and deleted when the chat is purged. Nothing written there survives into the next chat"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The executor's other work folders"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Out of reach. A channel chat reaches one folder and only one"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The executor's home directory"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Out of reach. The executor's saved memory, the files under their ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["~/"]},", and the transcripts of their Studio chats are not present in the workspace"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Plugins"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Loaded as in the executor's own chats: the account's plugins, plus any the executor has enabled for themselves unless the account restricts plugins to administrators"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The practical consequence is that a channel chat has no memory between conversations. Each one starts from the folder's current contents, and anything worth keeping has to come back through the conversation itself. If your application needs continuity across sessions, keep it on your side — you already store the chat id and its Chat Access Token, and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/building-an-app#showing-a-conversation-the-client-does-not-have"},"children":["resuming an existing chat"]}," is how the same conversation carries on. An MCP client continues a chat the same way, by keeping its ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["chat_id"]}," and calling ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients#run-an-action-or-start-a-chat"},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["continue_chat"]}]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-your-application-can-send","__idx":2},"children":["What Your Application Can Send"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Agent Gateway publishes a deliberately small input vocabulary. Through an SDK App, two operations reach the agent:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A prompt"]}," — one user message, which starts a turn."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["A stop"]}," — ends the turn that is running."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure AI Studio's internal chat protocol has more verbs than that: restarting or rewinding a session, changing a session's options such as the model, and adding or installing plugins. None of them is reachable through a channel. They are not blocked by a check that could be misconfigured; they have no representation in the protocol the gateway speaks, so an end user of your application cannot send one."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["One more input exists, and it is an answer rather than an instruction: when the agent stops to ask the user a question, your application sends the answer back as a tool result. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/building-an-app#the-one-tool-you-have-to-implement"},"children":["Answering the agent's question"]}," covers it."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Through an MCP Endpoint, the vocabulary is the six tools: list the folder and its Actions, run an Action by name, start a chat with a message, send a follow-up, and read the latest result. An Action runs as saved, with no arguments, and a question the agent asks is declined automatically rather than answered. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients#the-tools"},"children":["Connecting an MCP Client"]}," lists them in full."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-your-application-receives","__idx":3},"children":["What Your Application Receives"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The gateway forwards a named set of events and drops everything else, including anything new that appears in the internal protocol later."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Your client receives:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The assistant's text, streamed."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The agent's reasoning, streamed."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Tool calls — the tool's name and its arguments."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Questions the agent asks the user."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The end of a turn, including a failure."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Two things it does not receive, and both shape how you write the client:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tool output."]}," Your client sees that a tool ran and with what arguments, never what it returned."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["The reason a turn failed."]}," A failure arrives as one of a fixed set of categories in fixed text, and the reason behind it stays inside the platform. Design your error handling around \"the turn failed\", not around parsing the message."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Tool calls also arrive already executed, so your client displays them and nothing needs implementing behind them."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["An MCP client receives less: the agent's final text as the tool result, with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["status"]}," saying whether the turn completed, is still running, asked a question, failed, or could not be read. Reasoning and tool calls are not included. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients#read-a-result"},"children":["Read a Result"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-is-not-restricted","__idx":4},"children":["What Is Not Restricted"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A channel chat runs with the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["executor's full capabilities"]},". There is no per-channel setting that narrows them, and this is the part most worth reading twice before you point a public application at a channel."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Tools."]}," The agent has the same tools it has in a normal chat, including running queries and executing code in its sandbox."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connections and credentials."]}," Every ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/connections/"},"children":["connection"]}," the executor has configured is available to the chat, with the executor's credentials."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Plugins and skills."]}," Plugins load as in the executor's own chats — the account's plugins plus any the executor has enabled, unless the account restricts plugins to administrators — along with the folder's skills and Actions."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Model."]}," The chat runs on the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Balanced"]}," ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/concepts/#ai-model-tiers"},"children":["model tier"]},". The executor's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Default Model"]}," setting does not carry over, and neither the caller nor a per-channel setting can choose another tier."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["So an Agent Channel contains the workspace and the set of operations reachable from outside — it does not sandbox what the agent itself can do. Treat a channel as granting its callers the executor's reach over the channel's folder, and choose the executor accordingly: a user whose connections and permissions you are comfortable exposing to whoever can reach your application."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Two things follow for anyone deploying one:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Prompts arriving through a channel are untrusted input."]}," They come from your application's users or from whoever holds an MCP Endpoint's token, and they reach an agent that holds real credentials. Apply whatever review your own product needs before forwarding a prompt, and see the ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/security/"},"children":["security overview"]}," for how Treasure AI Studio handles prompts and data generally."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Scope the executor's access, not the channel."]}," Because the channel cannot narrow the executor, the only lever is which user the executor is. The fewer connections the executor has, the less the channel can reach."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"credits-attribution-and-audit","__idx":5},"children":["Credits, Attribution, and Audit"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Everything a channel chat does is attributed to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["executor"]},":"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"30%","data-label":"Dimension"},"children":["Dimension "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"70%","data-label":"Attributed To"},"children":["Attributed To "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Credits and quota"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The executor. Channel chats draw on the executor's usage the same way their own chats do — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/credits/credit-usage"},"children":["Credit Usage"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Permissions"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The executor's, evaluated per request. If the executor loses their assignment on the folder, the channel stops accepting connections"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chat ownership"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The executor. The chats appear in the executor's own chat list — with a conversation icon of two speech bubbles and the label ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["SDK App"]}," or ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["MCP"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data retention"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The account's normal chat retention policy — see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/security/data-retention"},"children":["Chat Data Retention"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-agent-channels-sdk-app-chat.28b9ad9834ed6058d5f0cbc44a878e2b71b102440c87d1e1320a3b168f12f3a6.679d8dbd.webp","alt":"Recent Chats in the sidebar showing a chat labelled SDK App above its title, with a conversation icon of two speech bubbles","framed":false,"withLightbox":true,"width":"300px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Which end user of your application triggered a given chat is not something Treasure AI Studio records, because it has no identity for them. If you need that link for your own audit, store it against the chat id on your side when you create the chat."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"limits","__idx":6},"children":["Limits"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The limits below apply to SDK Apps. MCP Endpoints have the same chat creation limit, counted separately for each endpoint across ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["run_action"]}," and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["start_chat"]},", and report it as a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["rate_limited"]}," tool error rather than ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]},". Their message length and wait limits are listed in ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-clients#limits"},"children":["Connecting an MCP Client"]},"."]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"width":"34%","data-label":"Limit"},"children":["Limit "]},{"$$mdtype":"Tag","name":"th","attributes":{"width":"66%","data-label":"Default"},"children":["Default "]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chat creation"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["30 chats per minute, per SDK App. Counted across all of the channel's tokens, so rotating a token does not raise it"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Turns"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["120 per minute, per Chat Access Token"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Concurrent turns in one chat"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["One. A chat runs a single turn at a time"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chat Access Token idle lifetime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["24 hours without use, extended by activity"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Chat Access Token absolute lifetime"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["30 days from issue, whatever the activity"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Turn duration"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["One hour as a backstop. In practice a turn ends well before that"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request body"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["32 MB per request to the messaging endpoint; a single message is capped at 1 MB"]}]}]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Exceeding a rate limit answers ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["429"]}," with a ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Retry-After"]}," header. The two token lifetimes can be set per SDK App; the others are platform-wide."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"what-happens-when-a-channel-stops","__idx":7},"children":["What Happens When a Channel Stops"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Disabling a channel, resigning as executor, or deleting the channel stops new activity. Requests with a Gateway Token, including every MCP request, are refused at once; requests with a Chat Access Token are refused within about a minute, because the gateway caches a successful chat-token check briefly. Revoking a Gateway Token stops that token and, through an SDK App, the Chat Access Tokens issued through it."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Chats that already exist are not deleted. They remain in the executor's chat list and fall under normal chat retention. A turn that is already streaming keeps streaming to its end, and the agent's work is not cancelled; what is refused is the client's next request — a new message, a resume, or the history. An MCP client's next request is refused with ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["401"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["403"]},"; the chat keeps running, and if only one token was revoked, its result stays readable with another token of the same endpoint. ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/tokens#revoking-a-token"},"children":["Gateway Tokens and Chat Access Tokens"]}," covers which action stops what."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":8},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/sdk-apps"},"children":["Creating and Managing an SDK App"]}," and ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/mcp-endpoints"},"children":["Static-Token MCP Endpoints"]}," — set up a channel and choose its executor."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/tokens"},"children":["Gateway Tokens and Chat Access Tokens"]}," — the credentials and their lifetimes."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/agent-channels/building-an-app"},"children":["Building a Chat App with the Vercel AI SDK"]}," — write the application that drives the chats."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/security/"},"children":["Security Overview"]}," — how Treasure AI Studio isolates and handles data generally."]}]}]},"headings":[{"value":"What an Agent Channel Chat Can Reach","id":"what-an-agent-channel-chat-can-reach","depth":1},{"value":"The Workspace Is One Folder, Read-Only, and Disposable","id":"the-workspace-is-one-folder-read-only-and-disposable","depth":2},{"value":"What Your Application Can Send","id":"what-your-application-can-send","depth":2},{"value":"What Your Application Receives","id":"what-your-application-receives","depth":2},{"value":"What Is Not Restricted","id":"what-is-not-restricted","depth":2},{"value":"Credits, Attribution, and Audit","id":"credits-attribution-and-audit","depth":2},{"value":"Limits","id":"limits","depth":2},{"value":"What Happens When a Channel Stops","id":"what-happens-when-a-channel-stops","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"What an Agent Channel Chat Can Reach","description":"What a Treasure AI Studio chat created through an Agent Channel can read and write, what its callers can send, and which limits and credits apply."},"platforms":["Web","Desktop"]},"lastModified":"2026-10-30T01:36:30.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/ai-studio/agent-channels/channel-chats","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}