presentation-get-layout
Retrieve the Sitecore layout definition item assigned to an item by ID or path. Use presentation-list-renderings to inspect page components.
Instructions
Gets the layout definition item assigned to an item -- the Sitecore layout item itself (e.g. 'Headless Layout'), not the renderings placed on the page. Use presentation-list-renderings to see a page's components.
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-get-layout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to retrieve layout for. Supply this or path. | |
| full | No | Return the unprojected .NET object graph. Very large (100,000+ chars/item); diagnostics only. | |
| path | No | The path of the item to retrieve layout for. Supply this or id. | |
| fields | No | Extra Sitecore field names to include, e.g. ['Title']. Ignored when full is true. | |
| language | No | Specifies the item language to retrieve layout. | |
| finalLayout | No | Specifies layout to be retrieved. If 'true', the final layout is retrieved, otherwise - shared layout. |