Create Artifact from Template
artifact-create_from_templateCreate a NEW artifact from one of Anima's templates. Returns a ready artifact; never edits an existing one.
Call with a templateId from artifact-list_templates (react, html, presentation or second-brain), an optional name (defaults to "Untitled project") and workspaceId. The template supplies the files, the artifact type and the framework: no files, ZIP upload, framework or artifactType are accepted. Then make it the user's: read it with artifact-explore and change it with artifact-edit, starting from the returned revision.
This is the DEFAULT way to start a new React app, HTML site or presentation that you will build yourself: use it whenever the user asks for one and has no code or file of their own, even if they never mention templates — they usually do not know templates exist. Use artifact-create instead to import existing code, to write a project from scratch when the user explicitly asks for that, to create a markdown document or asset, or to have Anima generate an app from a prompt, a website or Figma.
Returns the sessionId, initial revision, artifactUrl, name, artifactType, framework, fileCount, skippedFiles, and applicable preview URLs and Git access. Share artifactUrl with the human. Only use artifact-publish when the user explicitly asks for a public deployment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional display name; defaults to "Untitled project". | |
| templateId | Yes | The template to start from: an id returned by artifact-list_templates. | |
| workspaceId | No | Where to create it — an id from workspace-list_workspaces. Optional when you can create in only one workspace; otherwise required, since there is no default workspace. |