pig/skill/librarian

Librarian tool for skill content reading.

Creates a Tool that lets the agent read skill content on demand by skill name. The tool handler reads SKILL.md from disk and returns it as a JSON string.

Values

pub fn librarian_tool(skills: List(skill.Skill)) -> tool.Tool

Create a librarian tool from a list of loaded skills.

The tool is named read_skill and accepts {"name": "<skill-name>"}. It reads the SKILL.md content from disk and returns it as JSON.

Search Document