Skip to main content
Glama

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

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'); }
  • 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) }] }; }
  • 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'], }, },
  • AEMConnector delegation: Routes getPageContent call to PageOperations module.
    async getPageContent(pagePath: string) { return this.pageOps.getPageContent(pagePath);
  • 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'] },

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