Skip to main content
Glama

getNodeContent

Retrieve JCR node content from Adobe Experience Manager using a specified path and depth. Integrate with the AEM MCP Server for streamlined content management and automation workflows.

Instructions

Legacy: Get JCR node content

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNo
pathYes

Implementation Reference

  • Core handler function that implements getNodeContent by fetching raw JSON from AEM JCR node API with specified depth
    async getNodeContent(path: string, depth = 1): Promise<NodeContentResponse> { return safeExecute<NodeContentResponse>(async () => { const response = await this.httpClient.get(`${path}.json`, { params: { ':depth': depth.toString() } }); return { path, depth, content: response.data, timestamp: new Date().toISOString() }; }, 'getNodeContent');
  • MCP server dispatch handler for the getNodeContent tool call
    case 'getNodeContent': { const { path, depth } = args as { path: string; depth: number }; const result = await aemConnector.getNodeContent(path, depth); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema definition for the getNodeContent tool
    name: 'getNodeContent', description: 'Legacy: Get JCR node content', inputSchema: { type: 'object', properties: { path: { type: 'string' }, depth: { type: 'number' }, }, required: ['path'], },
  • Tool registration in the MCP tools array
    { name: 'getNodeContent', description: 'Legacy: Get JCR node content', inputSchema: { type: 'object', properties: { path: { type: 'string' }, depth: { type: 'number' }, }, required: ['path'], },
  • Delegation from AEMConnector to UtilityOperations
    async getNodeContent(path: string, depth?: number) { return this.utilityOps.getNodeContent(path, depth);

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