Skip to main content
Glama

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
NameRequiredDescriptionDefault
pagePathYes

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'); }
  • 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'], },
  • 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) }] };
  • Delegation handler in AEMConnector that routes getPageContent calls to the PageOperations module.
    async getPageContent(pagePath: string) { return this.pageOps.getPageContent(pagePath); }
  • Alternative handler in MCPRequestHandler class (possibly for legacy or alternative usage) that delegates to AEMConnector.
    case 'getPageContent': return await this.aemConnector.getPageContent(params.pagePath);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/indrasishbanerjee/aem-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server