MCPcopy Index your code
hub / github.com/github/awesome-copilot / getToolActionLink

Function getToolActionLink

website/src/scripts/pages/tools-render.ts:68–77  ·  view source on GitHub ↗
(
  href: string | undefined,
  label: string,
  className: string
)

Source from the content-addressed store, hash-verified

66}
67
68function getToolActionLink(
69 href: string | undefined,
70 label: string,
71 className: string
72): string {
73 if (!href) return "";
74 return `<a href="${sanitizeToolUrl(
75 href
76 )}" class="${className}" target="_blank" rel="noopener">${label}</a>`;
77}
78
79export function renderToolsHtml(
80 tools: RenderableTool[]

Callers 1

renderToolsHtmlFunction · 0.85

Calls 1

sanitizeToolUrlFunction · 0.85

Tested by

no test coverage detected