getPageContent
Retrieve complete page content including Experience Fragments and Content Fragments from Adobe Experience Manager for content management and automation workflows.
Instructions
Get all content from a page including Experience Fragments and Content Fragments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pagePath | Yes |
Implementation Reference
- Core implementation of the getPageContent tool. Fetches complete page content (including Experience Fragments and Content Fragments) from AEM using the .infinity.json endpoint and returns it wrapped in a standardized response.async getPageContent(pagePath: string): Promise<PageContentResponse> { return safeExecute<PageContentResponse>(async () => { const response = await this.httpClient.get(`${pagePath}.infinity.json`); return createSuccessResponse({ pagePath, content: response.data, }, 'getPageContent') as PageContentResponse; }, 'getPageContent'); }
- src/mcp-server.ts:156-162 (registration)MCP tool registration entry defining the name, description, and input schema for getPageContent.name: 'getPageContent', description: 'Get all content from a page including Experience Fragments and Content Fragments', inputSchema: { type: 'object', properties: { pagePath: { type: 'string' } }, required: ['pagePath'], },
- src/mcp-server.ts:654-657 (handler)MCP server request handler case that extracts pagePath argument and delegates execution to AEMConnector.getPageContent, formatting the result as MCP content response.case 'getPageContent': { const pagePath = (args as { pagePath: string }).pagePath; const result = await aemConnector.getPageContent(pagePath); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
- src/aem-connector-new.ts:91-93 (handler)Delegation handler in AEMConnector that routes getPageContent calls to the PageOperations module.async getPageContent(pagePath: string) { return this.pageOps.getPageContent(pagePath); }
- src/mcp-handler.ts:37-38 (schema)Alternative handler in MCPRequestHandler class (possibly for legacy or alternative usage) that delegates to AEMConnector.case 'getPageContent': return await this.aemConnector.getPageContent(params.pagePath);