Skip to content

create_model_from_template

Create a new customer-owned model from an official or workspace template. Any workspace member may call this tool. The new model starts with a full copy of the template’s code and version history. Data-source credentials and prior run outputs are NOT copied. Provenance is recorded so the new model’s origin is traceable. The calling user is granted Owner access to the new model.

NameTypeRequiredDefaultDescription
template_model_nameAnnotated[str, Field(description='Name of the existing model to use as a template source.')]Yes
new_model_nameAnnotated[str, Field(description='Name for the newly created model. Must be unique within the workspace.')]Yes
descriptionAnnotated[str, Field(description='Optional description for the new model.')]No''
branch`Annotated[strNone, Field(description=“Branch in the template model to copy from. Defaults to the template’s default branch.”)]`NoNone
template_source_kindAnnotated[Literal['workspace', 'official'], Field(description='Template catalog source returned by list_templates. Defaults to workspace.')]No'workspace'
workspace_id`Annotated[strNone, Field(description=WORKSPACE_ID_FIELD_DESCRIPTION)]`NoNone

Returns a structured object. Top-level fields:

  • model (string)
  • template_source (string)
  • description (string)
  • model_url (string)
  • clone_url (string)
  • workspace_id (string)
  • provenance (object)

See the response example below for the full payload shape.

{
"name": "create_model_from_template",
"arguments": {
"template_model_name": "saas-arr-template",
"new_model_name": "forecasts",
"description": "FY26 SaaS forecasts"
}
}
{
"model": "forecasts",
"template_source": "saas-arr-template",
"description": "FY26 SaaS forecasts",
"model_url": "https://app.bridgetown.builders/models/forecasts",
"clone_url": "https://git.bridgetown.builders/acme/forecasts.git",
"workspace_id": "dddddddd-dddd-dddd-dddd-dddddddddddd",
"provenance": {
"kind": "workspace",
"template_id": "saas-arr-template"
}
}
  • Module: Templates
  • Requires an authenticated Bridge Town session (OAuth) or an API token.