common-add-base-template-by-id
Add a base template to a Sitecore template item by specifying its ID. This tool enables template inheritance by linking templates together in the Sitecore content management system.
Instructions
Adds a base template to a template item by its ID.
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": {
"id": "<id>",
"template": "<template>"
},
"name": "common-add-base-template-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the item to add the base template to. | |
| template | Yes | The path representing the template item to add as a base template. | |
| database | No | The database containing the item (defaults to the context database). |