template
The template.* tools of the Runbase MCP server, generated from their definitions.
template.export
Exports the workspace as an runbase-template.json (versioned format): databases, objects and schema, saved views, functions, code components (TSX), workflows, pages, NAMES of the required secrets (never their values) and optional sample records. Workspace ids are replaced by local refs ($object:<slug>, $workflow:<key>, $record:<key>). Returns the template JSON.
| Name | Type | Required | Description |
|---|---|---|---|
name | string | no | |
description | string | no | |
sampleRecords | integer | no | sample records per object (default 0) |
workspace | string | no | Workspace id or name (default: active workspace) |
template.import
Imports an runbase-template.json into the workspace (admin scope): creates databases, objects, views, records, functions, workflows (as draft), components and pages. Refused if an object, function or component of the same name exists. Invalid template: one error per problem with its path. Returns counts, created workflow and page ids, and missingSecrets to set (secrets.set) before activating workflows.
| Name | Type | Required | Description |
|---|---|---|---|
template | union | yes | the template object, or its JSON text |
workspace | string | no | Workspace id or name (default: active workspace) |