Table of Contents

Method GetAllowedTools

Namespace
LMKit.Agents.Skills
Assembly
LM-Kit.NET.dll

GetAllowedTools()

Gets the allowed tools list parsed from metadata.

public IReadOnlyList<string> GetAllowedTools()

Returns

IReadOnlyList<string>

A list of tool specifications, or an empty list if none are specified.

Examples

Checking which tools a skill is allowed to use:

var skill = AgentSkill.Load("./skills/web-scraper");
var allowedTools = skill.GetAllowedTools();
if (allowedTools.Count > 0)
{
    Console.WriteLine("This skill can use: " + string.Join(", ", allowedTools));
    // Output: "This skill can use: web_fetch, file_write"
}