Skip to content
Last updated

What an Agent Channel Chat Can Reach

WebDesktop

A chat created through an 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.

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 not prevented from doing.

This page covers channels that run as an executor

Everything below applies to SDK Apps and static-token MCP Endpoints. A chat started through an 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 The Chats Are the Person's Own Studio Chats.

A chat started from a 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 Using a Slack Bot.

The Workspace Is One Folder, Read-Only, and Disposable

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.

What In a Channel Chat
The shared work folderReadable, never writable. Files that members put there through Treasure AI Studio are visible to the agent; nothing the agent does changes them
Scratch spaceA 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
The executor's other work foldersOut of reach. A channel chat reaches one folder and only one
The executor's home directoryOut of reach. The executor's saved memory, the files under their ~/, and the transcripts of their Studio chats are not present in the workspace
PluginsLoaded 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

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 resuming an existing chat is how the same conversation carries on. An MCP client continues a chat the same way, by keeping its chat_id and calling continue_chat.

What Your Application Can Send

The Agent Gateway publishes a deliberately small input vocabulary. Through an SDK App, two operations reach the agent:

  • A prompt — one user message, which starts a turn.
  • A stop — ends the turn that is running.

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.

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. Answering the agent's question covers it.

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. Connecting an MCP Client lists them in full.

What Your Application Receives

The gateway forwards a named set of events and drops everything else, including anything new that appears in the internal protocol later.

Your client receives:

  • The assistant's text, streamed.
  • The agent's reasoning, streamed.
  • Tool calls — the tool's name and its arguments.
  • Questions the agent asks the user.
  • The end of a turn, including a failure.

Two things it does not receive, and both shape how you write the client:

  • Tool output. Your client sees that a tool ran and with what arguments, never what it returned.
  • 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.

Tool calls also arrive already executed, so your client displays them and nothing needs implementing behind them.

An MCP client receives less: the agent's final text as the tool result, with a 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 Read a Result.

What Is Not Restricted

A channel chat runs with the 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.

  • Tools. The agent has the same tools it has in a normal chat, including running queries and executing code in its sandbox.
  • Connections and credentials. Every connection the executor has configured is available to the chat, with the executor's credentials.
  • 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.
  • Model. The chat runs on the Balanced model tier. The executor's Default Model setting does not carry over, and neither the caller nor a per-channel setting can choose another tier.

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.

Two things follow for anyone deploying one:

  • 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 security overview for how Treasure AI Studio handles prompts and data generally.
  • 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.

Credits, Attribution, and Audit

Everything a channel chat does is attributed to the executor:

Dimension Attributed To
Credits and quotaThe executor. Channel chats draw on the executor's usage the same way their own chats do — see Credit Usage
PermissionsThe executor's, evaluated per request. If the executor loses their assignment on the folder, the channel stops accepting connections
Chat ownershipThe executor. The chats appear in the executor's own chat list — with a conversation icon of two speech bubbles and the label SDK App or MCP
Data retentionThe account's normal chat retention policy — see Chat Data Retention
Recent Chats in the sidebar showing a chat labelled SDK App above its title, with a conversation icon of two speech bubbles

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.

Limits

The limits below apply to SDK Apps. MCP Endpoints have the same chat creation limit, counted separately for each endpoint across run_action and start_chat, and report it as a rate_limited tool error rather than 429. Their message length and wait limits are listed in Connecting an MCP Client.

Limit Default
Chat creation30 chats per minute, per SDK App. Counted across all of the channel's tokens, so rotating a token does not raise it
Turns120 per minute, per Chat Access Token
Concurrent turns in one chatOne. A chat runs a single turn at a time
Chat Access Token idle lifetime24 hours without use, extended by activity
Chat Access Token absolute lifetime30 days from issue, whatever the activity
Turn durationOne hour as a backstop. In practice a turn ends well before that
Request body32 MB per request to the messaging endpoint; a single message is capped at 1 MB

Exceeding a rate limit answers 429 with a Retry-After header. The two token lifetimes can be set per SDK App; the others are platform-wide.

What Happens When a Channel Stops

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.

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 401 or 403; the chat keeps running, and if only one token was revoked, its result stays readable with another token of the same endpoint. Gateway Tokens and Chat Access Tokens covers which action stops what.

Next Steps