> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rerun.build/llms.txt
> Use this file to discover all available pages before exploring further.

# Brain

> Read and write the pages every coworker of the workspace reads.

The [Brain](https://docs.rerun.build/brain.md) holds what the company is, sells and decides, written once and read by every coworker of the workspace from its next run. These tools read and write its pages. Writing needs a member behind the key: a write is signed in the page history with the name of the member who created it. A key that acts for the workspace still lists, searches, reads and deletes pages.

Like the app, they are open to every member of the workspace. A page filed under a Box the key cannot open reads as filed for everyone.

## list\_brain\_pages

Lists the pages of the Brain, without their content.

**type** `string`

Only the pages of this type.

**spaceId** `string`

Only the pages filed under this Box.

```json Response theme={"system"}
{
  "pages": [
    { "slug": "pricing", "title": "Pricing", "type": "offering", "tags": [], "spaceId": null, "updatedAt": "2026-11-20T09:12:00.000Z", "updatedBy": "user:ada@acme.test", "hash": "…" }
  ]
}
```

The types are `company`, `offering`, `market`, `team`, `voice`, `stack` and `priorities` for the cards of the company, and `customer`, `competitor`, `person`, `product`, `decision` and `note` for pages about one thing.

## search\_brain

Searches the Brain about a subject, by meaning and by keyword, the way a coworker searches it during a run. Returns the pages that match, best first, each with its two best passages, and in `related` the pages linked to them.

**query** `string` *required*

What to look for, in plain words.

**limit** `number`

Default `5`, between `1` and `10`.

**tags** `string[]`

Only the pages carrying at least one of these tags.

**spaceId** `string`

Only the pages filed under this Box. A Box the key cannot open finds nothing.

```json Response theme={"system"}
{
  "hits": [
    {
      "slug": "refunds",
      "title": "Refunds",
      "type": "decision",
      "tags": ["billing"],
      "spaceId": null,
      "passages": [{ "heading": "Policy", "content": "Refunds are granted within 30 days…" }]
    }
  ],
  "related": [{ "slug": "support-desk", "title": "Support desk" }]
}
```

Read a page in full with `get_brain_page`. A machine that has not been updated since this tool shipped answers that it must be updated first: until then, `list_brain_pages` and `get_brain_page` read the Brain.

## get\_brain\_page

Reads one page in full: its markdown `content`, its `sources`, the pages it links to and the ones linking to it (`backlinks`), its `hash` and its `revisions`, newest first.

**slug** `string` *required*

## write\_brain\_page

Creates a page, or rewrites one. The write replaces the whole page.

**slug** `string` *required*

Lowercase kebab-case, 64 characters at most, for example `pricing` or `acme-corp`.

**title** `string` *required*

120 characters at most.

**type** `string` *required*

One of the types above.

**content** `string` *required*

The whole page in markdown, 60,000 characters at most.

**sources** `string[]`

Where the facts come from: URLs or file paths, 50 at most.

**baseHash** `string | null` *required*

`null` to create the page. To change one, the `hash` that `get_brain_page` gave.

**spaceId** `string`

File the page under this Box, the way the Brain files a page in the app. Leave it out to keep it for everyone.

```json Response theme={"system"}
{ "slug": "pricing", "hash": "…", "title": "Pricing", "spaceId": null, "created": true }
```

A write made against an older `hash`, because someone changed the page since you read it, is refused. Read the page again with `get_brain_page` and redo your change on what it says now.

Filing under a Box comes after the write. When it fails, the page stays written for everyone and the answer carries a `note`: call `write_brain_page` again with the new `hash` and `spaceId` to file it.

## delete\_brain\_page

Deletes a page. No coworker reads it any more, and the links to it from other pages break. Needs `confirm: true`.

**slug** `string` *required*

**confirm** `boolean` *required*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.