Execute WASM-based skills mounted to virtual paths. Use this skill when the user requests skill execution such as "Execute the RAG skill", "Run the analytics skill", or "Call the skill at this path".
Execute WASM-based skills mounted to virtual paths. Skills extend ToolFS functionality with custom handlers that can be mounted to specific paths and executed through the filesystem interface.
/toolfs/<skill_name>ToolFS Path:
/toolfs/<skill_mount_path>?text=<query>&<param>=<value>
Example:
GET /toolfs/rag/skill/search?text=AI%20agents&top_k=5
// Response
{
"success": true,
"result": {
"query": "AI agents",
"top_k": 5,
"results": [
{
"document": {
"id": "doc-1",
"content": "AI agents use tools to interact with their environment...",
"metadata": {}
},
"score": 0.92
}
],
"count": 1
},
"metadata": {
"skill_name": "rag-skill",
"skill_version": "1.0.0"
}
}
ToolFS Path:
POST /toolfs/skills/execute
Example:
POST /toolfs/skills/execute
Content-Type: application/json
{
"operations": [
{
"type": "execute_code_skill",
"skill_path": "/toolfs/rag",
"query": "vector database",
"skill_data": {
"top_k": 10
}
}
]
}
// Response
{
"results": [
{
"type": "code",
"source": "/toolfs/rag",
"content": "...",
"success": true,
"code": {
"name": "rag-skill",
"version": "1.0.0"
}
}
]
}
ToolFS Path:
GET /toolfs/skills
Example:
GET /toolfs/skills
// Response
{
"skills": [
{
"name": "rag-skill",
"version": "1.0.0",
"mount_path": "/toolfs/rag",
"source": "wasm"
},
{
"name": "analytics-skill",
"version": "2.1.0",
"mount_path": "/toolfs/analytics",
"source": "injected"
}
]
}
Skills receive requests in JSON format:
{
"operation": "search",
"path": "/toolfs/rag/query?text=AI",
"data": {
"query": "AI agents",
"top_k": 5
}
}
Skills must return responses in JSON format:
{
"success": true,
"result": {
// Skill-specific result data
},
"error": "error message if failed"
}
Use Skill skill when you need to:
Common use cases:
Skills can be:
Skill operations return standardized result structures:
{
"type": "code",
"source": "/toolfs/<skill_path>",
"content": "skill result data",
"metadata": {
"skill_name": "...",
"skill_version": "..."
},
"success": true,
"code": {
"name": "rag-skill",
"version": "1.0.0",
"output": {}
},
"error": "error message if failed"
}
When presenting skill execution results:
โ Skill executed successfully
Skill: rag-skill v1.0.0
Path: /toolfs/rag/skill/search
Results:
- Found 1 document matching "AI agents"
- Score: 0.92
Document: doc-1
Content: AI agents use tools to interact with their environment...
If a skill execution fails:
GET /toolfs/skillsIf skill execution fails:
If execution hits resource limits:
success field in skill responsesThis skill is part of ToolFS. See main SKILL.md for overview.