presentation-add-rendering-by-path
Adds a rendering to a Sitecore item's presentation by specifying the item path, rendering path, and placeholder. Configure data source, layout type, language, and insertion index for precise control.
Instructions
Adds a rendering to presentation of an item specified by path.
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": {
"itemPath": "<itemPath>",
"renderingPath": "<renderingPath>",
"placeHolder": "<placeHolder>"
},
"name": "presentation-add-rendering-by-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemPath | Yes | The path of the item to add the rendering to. | |
| renderingPath | Yes | The path of the rendering to add. | |
| placeHolder | Yes | The placeholder to add the rendering to. | |
| dataSource | No | The rendering data source. | |
| finalLayout | No | Specifies layout to add the rendering to. If 'true', the final layout is used, otherwise - shared layout. | |
| language | No | The language version of the item to add the rendering to. | |
| index | No | The index at which the Rendering should be inserted. |