getAssetMetadata
Retrieve metadata for digital assets stored in Adobe Experience Manager to access file details and properties for content management workflows.
Instructions
Get asset metadata
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetPath | Yes |
Implementation Reference
- Core handler function implementing the getAssetMetadata tool logic: performs HTTP GET to the asset's .json endpoint, extracts metadata from jcr:content, and returns a formatted success response.async getAssetMetadata(assetPath) { return safeExecute(async () => { const response = await this.httpClient.get(`${assetPath}.json`); const metadata = response.data['jcr:content']?.metadata || {}; return createSuccessResponse({ assetPath, metadata, fullData: response.data, }, 'getAssetMetadata'); }, 'getAssetMetadata'); }
- dist/mcp-server.js:676-679 (registration)MCP server request handler dispatch case for getAssetMetadata tool, extracting assetPath from args and delegating to AEM connector.case 'getAssetMetadata': { const assetPath = args.assetPath; const result = await aemConnector.getAssetMetadata(assetPath); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
- dist/mcp-server.js:222-229 (schema)Tool registration in MCP tools list including name, description, and input schema requiring 'assetPath' string.name: 'getAssetMetadata', description: 'Get asset metadata', inputSchema: { type: 'object', properties: { assetPath: { type: 'string' } }, required: ['assetPath'], }, },
- dist/aem-connector-new.js:132-133 (handler)AEM connector wrapper method delegating getAssetMetadata call to underlying assetOps instance.async getAssetMetadata(assetPath) { return this.assetOps.getAssetMetadata(assetPath);
- dist/mcp-handler.js:134-134 (registration)Alternative tool method registration in MCP handler's available methods list.{ name: 'getAssetMetadata', description: 'Get asset metadata', parameters: ['assetPath'] },