The emergent tool to export.
Complete SKILL.md content as a string.
import { exportToolAsSkill } from '@framers/agentos/emergent/SkillExporter';
const markdown = exportToolAsSkill(myEmergentTool);
console.log(markdown);
// ---
// name: fetch-data
// version: '1.0.0'
// ...
// ---
// # Fetch Data
// ...
Converts an EmergentTool into a SKILL.md markdown string.
The generated SKILL.md follows the standard format used by the curated skills in
packages/agentos-skills/registry/curated/. It includes YAML frontmatter, a purpose section, usage guidance, a parameter table, and implementation notes.Sandbox tools receive a redaction notice instead of exposed source code — the SKILL.md documents the tool's interface without leaking runtime code.