> ## 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.

# Templates

> Author a marketplace template from coworkers that already work, without leaving your editor.

These twelve tools turn coworkers running in your sandbox into a marketplace listing other people install in one click. See [Create a template](https://docs.rerun.build/templates/create.md) for the same workflow in the app.

> [!WARNING]
>
> **Expert accounts only.** Every tool on this page requires the key to belong to the sandbox of an expert account. The gate says so on the first call. All 53 tools are advertised to every key, so a client will offer these even when your account cannot use them. See [the Expert Program](https://docs.rerun.build/templates/expert-program.md).

Two rules every tool here shares. Publication is never the caller's decision: you write a draft and hand it over. And a template can only be built from sandbox coworkers, because capturing from a working workspace would publish a client's memory files.

## The usual sequence

**1. create\_template**

Create a draft from a title.

**2. update\_template**

Write the copy and set the pricing.

**3. plan\_template\_capture**

Dry run the capture and read what it would ship.

**4. capture\_template\_agents**

Archive the coworkers into the template.

**5. add\_template\_image**

Add the cover.

**6. get\_template**

Read `submitChecklist` and fix what is missing.

**7. submit\_template**

Hand it to the Rerun team.

## list\_templates

Lists the templates this account authors, with `templateId`, `slug`, `title`, `status`, pricing, how many coworkers are captured, and why a template is no longer editable when it is.

Takes no arguments. Call it first: every other template tool takes the `templateId` it returns.

Statuses are `draft` (yours, editable), `in_review` (handed over, frozen), `published` and `unlisted` (live, maintained by Rerun from then on), and `archived`.

## get\_template

One template in full: the editorial document, the coworkers already captured with their `key`, and `submitChecklist`, the exact list `submit_template` enforces with `met` true or false per item, plus `readyToSubmit` and `missing`.

**templateId** `string` *required*

Read it before every update. `update_template` only touches the fields you pass, so this is how you know what is already written.

## create\_template

Creates an empty draft.

**title** `string` *required*

The product name of the template, 50 characters maximum, for example `Inbound lead qualifier`.

The slug, which is the public URL of the page, is derived from that title and is not editable afterwards. Treat the title as the product name.

Nothing becomes public here. A draft stays private until `submit_template` hands it over and the team approves it.

## update\_template

Writes the editorial page of a draft. Only the fields you pass change.

**templateId** `string` *required*

**title** `string`

The catalogue title, 50 characters maximum.

**tagline** `string`

One line, up to about 160 characters. The card subtitle.

**longDescription** `string`

The body of the page, in markdown. This is the page.

**category** `string`

The audience the template is for, not the team that built it. One of `agencies`, `ecommerce`, `saas`, `sales`, `recruiting`, `real-estate`, `legal`, `creators`, `productivity`, `other`.

**tags** `string[]`

Replaces the whole list.

**setupMinutes** `number`

Honest minutes to install it and connect the accounts. Shown on the page.

**gallery** `object[]`

Replaces the whole gallery, cover first. Each entry needs `url` and may carry `alt`.

**videoUrl** `string`

**faq** `object[]`

Replaces the whole FAQ. Each entry needs `question` and `answer`. Four to six entries reads best, written the way someone types them into a search box.

**metaTitle** `string`

Search title, about 60 characters.

**metaDescription** `string`

Search snippet, 120 to 155 characters. Required in that range before the template can be submitted.

**pricingModel** `string`

`free`, `one_time` (charged once) or `recurring` (monthly).

**priceAmountCents** `number`

Cents. `0` when free, at least `500` (\$5) when paid, up to `200000` (\$2,000). Any other combination is refused rather than silently stored.

> [!WARNING]
>
> Three traps. `tags`, `gallery` and `faq` replace the whole list, so passing `gallery` here drops the images already on the template. A template in review or published is read-only, and `withdraw_template` is the way back. Status, slug, creator, featured and the visibility flags are not writable.

## submit\_template

Hands a draft to the Rerun team for review.

**templateId** `string` *required*

It enforces the list `get_template` returns: a title, a tagline, a description, a meta description of 120 to 155 characters, at least one captured coworker, an install answer for every coworker, and for a paid template a Stripe account that can actually receive payouts. No image is required: the cards draw the board of the captured coworkers. It names what is missing instead of half-submitting. It also refuses on a credential found anywhere in the copy.

Once it succeeds the template is frozen: still private, no longer editable. `withdraw_template` is the only way back to a draft.

> [!NOTE]
>
> Payout onboarding cannot happen from here. It needs a browser: in the Rerun app, board toolbar, **My templates**, **Payouts**.

## withdraw\_template

Takes a template back from review into draft so it can be edited again.

**templateId** `string` *required*

Only works while it is `in_review`. Once published, the page is maintained by Rerun and this is refused.

## delete\_template

Permanently deletes a draft. Refused on a template in review or already published.

**templateId** `string` *required*

**confirm** `boolean` *required*

Must be `true`.

## list\_capture\_sources

Lists the Boxes and coworkers that can be captured: the sandbox only, and only coworkers the engine actually knows about.

Takes no arguments. The coworker ids it returns are what `plan_template_capture` and `capture_template_agents` take.

## plan\_template\_capture

Dry run. Inspects what capturing these coworkers would ship, without writing anything.

**templateId** `string` *required*

**spaceId** `string` *required*

From `list_capture_sources`.

**agentIds** `string[]` *required*

Coworker ids from `list_capture_sources`, in that Box.

Returns, per coworker: its skills, scheduled tasks and declared apps, the `.env` key **names** a copy will have to be given again (names only, never values), the MCP servers whose sign-in stays behind, how many memory files it holds, what the engine will redact on the way out, and `excludedByDefault`, the paths considered too personal to publish.

> [!NOTE]
>
> Read this before capturing. It is the security review, and the archive ends up behind a public install button.

## capture\_template\_agents

Captures coworkers from the sandbox into the template: prompt, skills, scheduled tasks, app declarations and workspace files are archived, and the template page is rewritten from what the folder actually contains.

**templateId** `string` *required*

**spaceId** `string` *required*

**agents** `object[]` *required*

One entry per coworker. Each entry needs `agentId` and may carry `exclude`, `keep` and `setup`.

**agents\[].exclude** `string[]`

Extra paths from `plan_template_capture` to leave out.

**agents\[].keep** `string[]`

Paths from `excludedByDefault` to ship anyway. A deliberate act: these are memories and credentials.

**agents\[].setup** `object`

The answer to "does this coworker need to be configured after install?", which a template cannot be submitted without. `required` is mandatory. `prompt` is required when `required` is `true`, and is addressed to the coworker, not to the user.

Paths marked excluded by default (memory, credential folders) are left out unless you name them in `keep`. Do not keep a memory folder without the account owner asking for it. The coworker database, `data/agent.db`, is not excluded by default: its tables ship with their rows, so clear the test rows first or name it in `exclude`.

Re-capturing a coworker already in the template updates its entry in place, and the editorial copy written about it survives. Read the `warnings` that come back: they name literal credentials the engine had to strip.

## remove\_template\_agent

Removes a captured coworker from a template and deletes its archive.

**templateId** `string` *required*

**agentKey** `string` *required*

The `key` `get_template` returns for each coworker, not the sandbox coworker id.

**confirm** `boolean` *required*

Must be `true`.

Apps no remaining coworker uses leave the page with it.

## add\_template\_image

Adds one image to the gallery from a URL that is already hosted somewhere public.

**templateId** `string` *required*

**imageUrl** `string` *required*

Public https URL of a png, jpg or webp.

**alt** `string`

What the image shows, one sentence. Read by search engines and screen readers.

**cover** `boolean`

Put it first, making it the cover and the social preview.

The bytes are downloaded and re-encoded into Rerun storage, so the gallery never points at a host that can expire or swap the picture after the review. Unlike `update_template(gallery)` this appends: the images already there are kept.

There is no upload and no image generation here. Produce or host the image elsewhere, then pass its https URL.


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