---
title: sourceLabel
description: >-
  A short label for a source URL. A GitHub or GitLab file link reads as its path
  and line (`src/mcp/tools.ts:23`); any other URL keeps its host and path.
updated_at: '2026-10-26T13:54:51+01:00'
created_at: '2026-10-26T13:54:51+01:00'
symbol:
  kind: function
  name: sourceLabel
  signatures:
    - 'sourceLabel(href: string): string'
  parameters:
    - name: href
      type: string
  returns:
    type: string
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/ui/src/lib/reference/metadata.ts#L43
---

# sourceLabel
