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
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| path | Yes |
Implementation Reference
- Core handler function that implements getNodeContent by fetching raw JSON from AEM JCR node API with specified depthasync 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');
- src/mcp-server.ts:664-668 (handler)MCP server dispatch handler for the getNodeContent tool callcase '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) }] }; }
- src/mcp-server.ts:177-186 (schema)Input schema definition for the getNodeContent toolname: 'getNodeContent', description: 'Legacy: Get JCR node content', inputSchema: { type: 'object', properties: { path: { type: 'string' }, depth: { type: 'number' }, }, required: ['path'], },
- src/mcp-server.ts:176-186 (registration)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'], },
- src/aem-connector-new.ts:197-198 (helper)Delegation from AEMConnector to UtilityOperationsasync getNodeContent(path: string, depth?: number) { return this.utilityOps.getNodeContent(path, depth);