getPageProperties
Extract and manage page properties from Adobe Experience Manager (AEM) using the specified page path to streamline content and asset management workflows.
Instructions
Get page properties
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pagePath | Yes |
Implementation Reference
- Core handler implementation that fetches page properties from AEM via HTTP GET to /jcr:content.json, extracts key metadata fields, and formats the response.async getPageProperties(pagePath) { return safeExecute(async () => { const response = await this.httpClient.get(`${pagePath}/jcr:content.json`); const content = response.data; const properties = { title: content['jcr:title'], description: content['jcr:description'], template: content['cq:template'], lastModified: content['cq:lastModified'], lastModifiedBy: content['cq:lastModifiedBy'], created: content['jcr:created'], createdBy: content['jcr:createdBy'], primaryType: content['jcr:primaryType'], resourceType: content['sling:resourceType'], tags: content['cq:tags'] || [], properties: content, }; return createSuccessResponse({ pagePath, properties }, 'getPageProperties'); }, 'getPageProperties'); }
- dist/mcp-server.js:662-666 (handler)MCP server request handler case for the getPageProperties tool, which extracts the pagePath argument and delegates execution to the AEM connector.case 'getPageProperties': { const pagePath = args.pagePath; const result = await aemConnector.getPageProperties(pagePath); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- dist/mcp-server.js:187-195 (registration)Registration of the getPageProperties tool in the MCP tools list, including name, description, and input schema definition.{ name: 'getPageProperties', description: 'Get page properties', inputSchema: { type: 'object', properties: { pagePath: { type: 'string' } }, required: ['pagePath'], }, },
- dist/aem-connector-new.js:82-83 (handler)Delegation handler in AEM connector that forwards getPageProperties call to the page operations module.async getPageProperties(pagePath) { return this.pageOps.getPageProperties(pagePath);