Skip to Content
Runbase

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.

NameTypeRequiredDescription
namestringno
descriptionstringno
sampleRecordsintegernosample records per object (default 0)
workspacestringnoWorkspace 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.

NameTypeRequiredDescription
templateunionyesthe template object, or its JSON text
workspacestringnoWorkspace id or name (default: active workspace)

On this page