presentation-set-layout
Assign or update a Sitecore item's layout by item ID or path, selecting a layout and setting final or shared layout.
Instructions
Sets layout for an item.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "presentation-set-layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to set the layout for. Supply this or path. | |
| path | No | The path of the item to set the layout for. Supply this or id. | |
| database | No | The database the layout is read from. Only used with layoutId; layoutPath carries its own prefix (e.g. master:/sitecore/layout/...). | master |
| language | No | The language of the item to set layout for. | |
| layoutId | No | The ID of the layout to set for the item. Supply this or layoutPath. | |
| layoutPath | No | The path of the layout to set for the item. Supply this or layoutId. | |
| finalLayout | No | Specifies layout to be updated. If 'true', the final layout is set, otherwise - shared layout. |