getPageProperties
Retrieve structured metadata and configuration details for AEM pages by specifying the page path, enabling content management and automation workflows.
Instructions
Get page properties
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pagePath | Yes |
Implementation Reference
- Core handler function that fetches page properties from AEM instance via HTTP GET to /jcr:content.json and formats structured response including title, template, modification dates, and all raw properties.async getPageProperties(pagePath: string): Promise<PagePropertiesResponse> { return safeExecute<PagePropertiesResponse>(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') as PagePropertiesResponse; }, 'getPageProperties'); }
- src/mcp-server.ts:198-205 (registration)Tool registration in MCP server including name, description, and input schema validation requiring pagePath parameter.name: 'getPageProperties', description: 'Get page properties', inputSchema: { type: 'object', properties: { pagePath: { type: 'string' } }, required: ['pagePath'], }, },
- src/mcp-server.ts:674-678 (handler)MCP server CallToolRequest handler that dispatches getPageProperties call to AEM connector and formats JSON response.case 'getPageProperties': { const pagePath = (args as { pagePath: string }).pagePath; const result = await aemConnector.getPageProperties(pagePath); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/interfaces/index.ts:385-402 (schema)TypeScript interface defining the output structure of getPageProperties response.export interface PagePropertiesResponse extends BaseResponse { data: { pagePath: string; properties: { title?: string; description?: string; template?: string; lastModified?: string; lastModifiedBy?: string; created?: string; createdBy?: string; primaryType?: string; resourceType?: string; tags?: string[]; properties: Record<string, unknown>; }; }; }
- src/aem-connector-new.ts:95-96 (helper)Wrapper method in AEMConnector that delegates getPageProperties to the PageOperations module.async getPageProperties(pagePath: string) { return this.pageOps.getPageProperties(pagePath);