inspect_layouts
Retrieves PowerPoint slide layouts with names, OOXML types, master and layout indices, and placeholder details; filter fields or return only layouts assigned to slides.
Instructions
Returns slide layouts with names, OOXML type (e.g. blank, twoObj, secHead), master/layout indices, and detailed placeholders. Use fields to control which data is returned. By default reads all layouts from every slide master in OOXML (complete list, requires file access — may take a moment on first call for cloud files). Layouts sharing a name across different masters are distinguished by masterIndex. Set usedOnly to return only layouts assigned to existing slides (fast, Office.js only, no file access).
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": "inspect_layouts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Comma-separated layout fields to include. Placeholders sub-fields in parens. Default: "index,masterIndex,name,type,usedBySlides,placeholders(type,idx,name)". All placeholder fields: type,idx,name,description,sz,left,top,width,height. | |
| usedOnly | No | If true, return only layouts currently assigned to slides (fast, Office.js only). Default: false (all layouts from OOXML). | |
| presentationId | No | Target presentation ID from list_presentations. Optional when only one presentation is connected. |