Export Template Package
export_template_packageExport an exact SAVED project snapshot as a portable template package. Supply idempotencyKey, expectedRevision, name, new slug and optional bounded mediaParams/textParams selectors for existing clip/leaf sites. Reads actual saved composition/components/media through the maintained extractor; no caller document, source, sample URL or provenance assertions. Returns a durable library-export job; poll get_template_job until ready, then pass its receiptId to get_template_package_download. An existing slug conflicts. A project-bound editor may export only its bound project. Does not render or create a new project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"body": "<body>"
},
"name": "export_template_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| commandId | No | Retry identity. A call repeated with the same commandId returns the first result instead of acting twice. | |
| projectId | Yes | projectId (path). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| jobId | No | ||
| stage | No | ||
| status | No | ||
| package | No | ||
| createdAt | No | ||
| errorCode | No | ||
| projectId | No | ||
| updatedAt | No | ||
| templateId | No | ||
| templateRef | No | ||
| errorMessage | No | ||
| documentSha256 | No | ||
| sourceProjectId | No | ||
| templateVersion | No |