INNER CODE UNIT · TypeScript

getCategoryGuide

HoangNguyen0403/agent-skills-standard · mcp/src/tools/index.ts:303

export async function getCategoryGuide(
  args: { category: string },
  ctx: ToolContext,
): Promise<ToolResult> {
  const empty = maybeEmptyState(ctx);
  if (empty) return empty;

  const categories = ctx.index.listCategories();
  const categoryHit = categories.find(
    (category) => category.toLowerCase() === args.category.toLowerCase(),
  );
  if (!categoryHit) {
    ctx.tracker.record({
      via: "get_category_guide",
      input: [args.category],
      loaded: [],
    });
    return {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…