Tools reference: sessions, rooms and minis
On this page
Start and follow other sessions, post in rooms, ask and manage minis.
These 18 tools are part of Cortex control. They let an agent work with the other sessions, rooms and minis of its context. For the story, read Agents working with other sessions, rooms and minis. For the whole list of tools, see Cortex tools reference.
Who can call them. Every session Cortex starts while Cortex control is on in Settings → MCP. Minis in rooms and task runs do not get them. An applet can call them with cortex.tools.call, if its manifest lists them and its configuration allows them. Its configuration must name a context.
Asking. Tools that read never ask. Tools that start work, spend your plan or change a room or a mini ask you in a card over the session, every time. Some offer Allow for This Session. Each tool below says which. See What agents ask you before they act.
Conductor. A context marked Conductor in Context Settings… lets its sessions start sessions in its extra roots. Only session_start takes a context argument. Everything else stays in the session's own context.
Try it
You don't call these tools yourself: you ask in your own words, in a session, and the agent picks the tools. Saying with Cortex or naming what you want to see (a view, a tab, the Stack) makes it reach for them.
| You type | What the agent uses |
|---|---|
| Start a Codex session in this context to review the redline, and wait for its answer | session_start, session_wait |
| What did yesterday's session about the NDA conclude? | session_list, session_read |
| Ask @clara whether clause 7 is acceptable | mini_ask |
| Open a room with Clara and Tomas on the residuals clause and post the question | room_create, room_post |
| Make a mini that reviews supplier contracts against our playbook | mini_create |
Sessions
session_list
The sessions of this context: live ones first with their state (running, waiting, permission, ended), their status line and last line, then stored ones by date. Each has an id, title, agent and account. This context only. No parameters. Read-only.
session_read
A session's conversation, condensed: prompts, answers and the names of the tools it used, with no tool outputs. It works for any session of this context, or one this session started.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | A session id, or a handle from session_start. |
last |
integer | no | The last N turns. Default 20, at most 200. |
session_start
Starts another agent session with a first prompt on its command line, on an account. It runs in this context, or, for a conductor context, in one of its extra roots.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
prompt |
string | yes | The new session's first turn. |
name |
string | no | Its title. |
account |
string | no | An account's name or id, such as "Claude", "Claude · Work" or "Codex". Default the context's account. |
context |
string | no | Conductor contexts only: an extra root's absolute path to work in instead of this context. |
Returns. A handle (id) for session_wait, session_read, session_send and session_end, and the session id once it is known (session). Asking. Every time, showing the prompt and the account, because it spends your plan. A context you deny lists nothing.
{ "prompt": "Run the tests in this repo and fix what fails.", "name": "Fix tests", "account": "Claude · Work" }
session_wait
Waits until a session this one started stops: waiting for a prompt, asking for permission, or ended.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | A handle from session_start. |
timeout |
integer | no | Seconds. Default 300, at most 600. On a timeout it returns the current state. |
Returns. The session's state and last line. Read-only.
session_send
Types a prompt into a live session this one started, then presses Return.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | A handle from session_start. |
prompt |
string | yes | The next turn. |
Asking. Every time, showing the prompt. There is no Allow for This Session for this tool.
session_end
Ends a session this one started. Its process is hung up and its transcript stays. It does not ask, since it acts only on what the session started.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
id |
string | yes | A handle from session_start. |
Rooms
A room is found by its id, else by its title in the session's context. A title that two rooms share is refused, with their ids.
room_list
The rooms of this context: id, title, objective, members (alias, title, muted), whether a round is running, whether it is archived and its last activity. No parameters. Read-only.
room_read
A room's recent log, oldest first: each message with its author (you, the @alias of a mini, or a session), time and text, and the room's own lines (joins, leaves, failures). Passes are left out. It says whether a round is running and who is answering.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
room |
string | yes | A room's id or title. |
last |
integer | no | The last N entries. Default 30, at most 200. |
room_post
Posts a message into a room as this session, shown under the session's title. It starts a round, as your own message does: the minis answer or pass, one at a time. Address a mini with @alias.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
room |
string | yes | A room's id or title. |
text |
string | yes | Markdown, at most 8 000 characters. |
wait |
boolean | no | true waits for the round to end and returns the answers. |
timeout |
integer | no | Seconds to wait. Default 120, at most 600. |
Asking. Every time, with Allow for This Session, because the minis' turns run on your plans.
room_create
Creates a room: a title, an optional objective given to every member, and its minis in the order they answer. The room is listed, not opened. Post in it with room_post.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
title |
string | yes | A few words. |
objective |
string | no | One line given to every member. |
minis |
array of strings | no | Aliases from mini_list, in the room's order. |
Asking. Every time, showing the title, the objective and the members.
room_members
Changes the members of a room: add minis, remove them, mute or unmute them. A mini added joins with the room's history as your settings say.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
room |
string | yes | A room's id or title. |
add |
array of strings | no | Minis to add. |
remove |
array of strings | no | Members to remove. |
mute |
array of strings | no | Members to mute. |
unmute |
array of strings | no | Members to unmute. |
Asking. Each time, with Allow for This Session.
room_archive
Archives a room: it leaves your list of open rooms and is kept whole. An open tab stays open. room_list still lists it, as archived. It never deletes a room.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
room |
string | yes | A room's id or title. |
Asking. Each time, with Allow for This Session.
room_unarchive
Brings an archived room back to your list of open rooms.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
room |
string | yes | A room's id or title. |
Asking. Each time, with Allow for This Session, separately from room_archive.
Minis
mini_list
Your minis: alias, title, the first line of the role, the engine, what it knows, whether it is bound to this context, and the rooms of this context it sits in. Use the aliases with mini_ask, room_create, room_members and task_create. No parameters. Read-only.
mini_read
One mini whole: its title, full role, behaviour, engine, knowledge files, how many lessons and examples it has, whether it is pinned or evolves, its current version and its last versions (number, date, by whom, why). Read it before mini_update.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
alias |
string | yes | The mini, without the @. |
mini_ask
Asks one mini one question and returns its answer. The mini answers from its role and its own knowledge. It may read this context read-only, and it is given as text the files you name. It never sees the conversation, so the question must hold what it needs. It takes at most 5 minutes.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
alias |
string | yes | The mini, without the @. |
question |
string | yes | Self-contained, at most 8 000 characters. |
files |
array of strings | no | Files of the context the mini may read for it. |
Asking. Each time, with Allow for This Session, because the mini runs on its own account.
mini_create
Adds a mini to your library. It runs on your default engine unless the session names another. It sits in no room until room_create or room_members puts it in one. Cortex asks you every time, and the question starts with anything the mini would do without asking you: write this context's files, run commands, reach the network.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
alias |
string | yes | Letters, digits and -, at most 32, not taken, no @. |
title |
string | yes | A few words, one line. |
role |
string | yes | Markdown, at most 20 000 characters: who it is, what it does, what it knows and doesn't, when it speaks, its guardrails. |
speaks |
string | no | whenItDecides or onlyWhenAddressed. |
length |
string | no | short, normal or long. |
reach |
boolean | no | It may read the room's context, read-only. |
bound |
boolean | no | It runs as a session of this context. |
account |
string | no | Its engine's account: an id, or the label mini_list shows for engines, such as Codex · Personal. Default: your default engine. |
model |
string | no | Its engine's model. Default: the account's. |
evolves |
string | no | off (default), remembers or learns. |
access |
string | bound only | readOnly, ask (default) or editFreely: how it may write this context. |
commands |
string | bound only | ask (default) or auto: whether its other tools ask you first. |
network |
boolean | bound, on Codex | Under editFreely, its commands may reach the network. Default false. |
Asking. Every time, showing the whole mini, with no Allow for This Session.
mini_update
Changes a mini: its title, its role (the whole new Markdown), speaks, length, reach or bound. You must name the version mini_read gave. If the mini changed since, the call is refused and the agent reads it again. A changed role makes a new version in the mini's history, with the reason. Lessons, examples, engine and evolving stay as they are. A mini bound to another context cannot be changed.
| Parameter | Type | Required | Meaning |
|---|---|---|---|
alias |
string | yes | The mini, without the @. |
version |
integer | yes | The version mini_read gave. |
reason |
string | no | Why, on one line. Kept in the history. |
title |
string | no | A few words. |
role |
string | no | The whole new role, at most 20 000 characters. |
speaks |
string | no | whenItDecides or onlyWhenAddressed. |
length |
string | no | short, normal or long. |
reach |
boolean | no | It may read the room's context, read-only. |
bound |
boolean | no | true binds it to this context, false unbinds it. |
Asking. Every time, showing the change, with no Allow for This Session.
Something wrong or missing? Tell us