getPageContent
Extract all content from a specified Adobe Experience Manager page, including Experience Fragments and Content Fragments, using a structured JSON-RPC API.
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 tool handler: Fetches complete recursive page content from AEM using .infinity.json endpoint and wraps in 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:654-658 (registration)MCP server top-level dispatch handler for getPageContent tool call, extracts pagePath param and invokes AEMConnector.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/mcp-server.ts:156-163 (schema)MCP tool registration including name, description, and JSON input schema requiring pagePath string.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/aem-connector-new.ts:91-92 (handler)AEMConnector delegation: Routes getPageContent call to PageOperations module.async getPageContent(pagePath: string) { return this.pageOps.getPageContent(pagePath);
- src/mcp-handler.ts:132-132 (registration)Alternative handler's tool list registration (used in listMethods response). Note: Primary MCP uses mcp-server.ts.{ name: 'getPageContent', description: 'Get all content from a page including Experience Fragments and Content Fragments', parameters: ['pagePath'] },