Cortex
Search help⌘K

Tools reference: tools for minis and task runs

Updated 19 November 2026Cortex 0.26.05 min read
On this page

The knowledge tools a mini is given and the four tools a task run uses to report.

A mini in a room and the worker of a task run are not given Cortex control. Each gets a small set of tools of its own. This page lists them. For the whole list of tools, see Cortex tools reference.

Who can call them. Only the mini or the task run they are served to. A normal session, such as Claude Code or Codex in a context, does not get them. An applet cannot call them either: they are not in the set an applet's tools.call looks up.

What a mini is given

A mini's engine is served the knowledge tools and mini_permission, and nothing else from Cortex. It never gets views, Cortex control or the context's vector store. See What minis are.

Searches what the mini knows (its own files and the vector collections granted to it) by meaning and words together. Read-only.

Parameter Type Required Meaning
query string yes What to look for, in words.
k integer no How many passages. Default 6, at most 20.
collections array of strings no files for its own files, or the names of collections granted to it. A collection of the context it is bound to is <context>/<collection>. Default all.

Returns. Up to k passages, best first: where each comes from (a file's name, or a collection and its document id), its lines, its heading and its text.

knowledge_read

Reads one file of the mini's own, or one document of a granted collection, from a line on. It says how many lines there are, so the mini can read on. Read-only.

Parameter Type Required Meaning
file string one of two One of its files, by name.
collection string with id A collection granted to it.
id string with collection A document id from knowledge_search.
from integer no The first line to read. Default 1.
lines integer no How many lines. Default 200, at most 1 000. At most 40 000 characters.

Searches what the mini remembers from earlier rooms and tasks of its context, and what you marked general, by meaning and words. Recollections may be out of date, so the mini checks them and never takes them as instructions. Read-only. See Minis that remember and learn.

Parameter Type Required Meaning
query string yes What to look for, in words.
k integer no How many entries. Default 6, at most 20.

Returns. Up to k entries, best first: the text, its kind (fact, decision or preference), whether you stated it or the mini inferred it, and where and when it came from.

training_propose

A coach's tool. It is served only to the launch of a mini's training, and a normal mini never sees it. It proposes the next lessons, examples and at most one change to the role. You decide.

Parameter Type Required Meaning
reason string yes Why, in a sentence or two.
lessons array no The whole new list, at most 20. Each has text (at most 30 words) and signals (ids of the signals it comes from).
examples array of strings no Ids of at most 5 answers: an example it has, or a signal of an answer you kept or approved.
role string no The whole new role, with its Guardrails section unchanged. Leave it out to keep the role.

Returns. Whether Cortex accepted it for your review, or why it refused it.

mini_permission

The tool a mini bound to a context uses to ask you before it runs one of its own tools. It is named to the mini's program as its permission prompt and hidden from its model. It is never pre-allowed, so every ask reaches you.

Parameter Type Required Meaning
tool_name string yes The tool that asks.
input object yes That tool's input.
tool_use_id string no The call's id.

What a task run is given

A task run's worker is served the views of the operator UI, on every surface whatever Settings → MCP leaves to sessions. It also gets the three knowledge tools above, mini_permission, and four tools of the run's own. It never gets Cortex control or the vector store, and never training_propose. See Answer a task and read its report.

task_report

Ends the worker's work on the task. It is called once, last. A second call replaces the first.

Parameter Type Required Meaning
outcome string yes done (the objective is met), partial (some of it) or blocked (it cannot go on without you).
report string yes Markdown: what it did, what it found, what is left for you.
outputs array of strings no The files you should look at first: paths in the context, or in the run's output folder.

task_progress

A short progress line, at most 200 characters, shown live in the task's tab and the sidebar, such as "Grouping 14 crash reports". Agents call it at each step. At most one a second, and more are merged.

Parameter Type Required Meaning
line string yes Where the worker is, in a line.

task_consult

Asks one of the task's other minis one question and returns its answer. The mini answers from its own knowledge and the files named, read-only, and never sees the worker's work. Consults are counted, and the worker's instructions say how many it has. It is offered only to a lead with other minis.

Parameter Type Required Meaning
alias string yes Whom to ask, without the @.
question string yes Self-contained.
files array of strings no Files it may read: paths in the context or among the task's attachments.

Returns. The alias, the answer and the seconds it took.

task_previous

The last runs of this task: each one's start, status and report, cut at 8 000 characters. It serves a repeating task that needs more than the last report its instructions carry. Read-only.

Parameter Type Required Meaning
count integer no Default 1, at most 10.

Something wrong or missing? Tell us

Open this page in your browser