metadataUtils.d.ts 575 B

12345678910111213141516
  1. import { BaseMetadata } from '../types.js';
  2. /**
  3. * Utilities for working with BaseMetadata objects.
  4. */
  5. /**
  6. * Gets the display name for an object with BaseMetadata.
  7. * For tools, the precedence is: title → annotations.title → name
  8. * For other objects: title → name
  9. * This implements the spec requirement: "if no title is provided, name should be used for display purposes"
  10. */
  11. export declare function getDisplayName(metadata: BaseMetadata | (BaseMetadata & {
  12. annotations?: {
  13. title?: string;
  14. };
  15. })): string;
  16. //# sourceMappingURL=metadataUtils.d.ts.map