presentation-add-placeholder-setting-by-id
Adds a placeholder setting to a Sitecore content item by specifying its ID, placeholder setting ID, and key to configure layout presentation.
Instructions
Adds a placeholder setting to the item specified by 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": {
"itemId": "<itemId>",
"placeholderSettingId": "<placeholderSettingId>",
"key": "<key>"
},
"name": "presentation-add-placeholder-setting-by-id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | The ID of the item to add the placeholder setting to. | |
| placeholderSettingId | Yes | The ID of the placeholder setting to add. | |
| key | Yes | The key of the placeholder setting to add. | |
| database | No | The context database. | master |
| finalLayout | No | Specifies layout to add the rendering placeholder setting to. If 'true', the final layout is used, otherwise - shared layout. | |
| language | No | The language version of the item to add the placeholder setting to. |