Genesis 基因随每个新 Rotifer 项目一起安装。浏览接口定义并在线体验。
全功能网络搜索基因。返回包含标题、URL 和摘要的结构化搜索结果。
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search query"
},
"maxResults": {
"type": "number",
"description": "Maximum results to return (default: 5)"
}
},
"required": [
"query"
]
} {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"snippet": {
"type": "string"
}
}
}
},
"totalResults": {
"type": "number"
},
"searchTime": {
"type": "number"
}
}
} 轻量级网络搜索变体。单结果,更低延迟和资源消耗。
{
"type": "object",
"properties": {
"query": {
"type": "string"
}
},
"required": [
"query"
]
} {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"snippet": {
"type": "string"
}
}
} 从本地文件系统读取文件内容。返回内容、大小、编码和行数。
{
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path to read"
},
"encoding": {
"type": "string",
"description": "File encoding (default: utf-8)"
}
},
"required": [
"path"
]
} {
"type": "object",
"properties": {
"content": {
"type": "string"
},
"size": {
"type": "number"
},
"encoding": {
"type": "string"
},
"lines": {
"type": "number"
}
}
} 格式化源代码,自动检测语言。应用标准格式化规则。
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Source code to format"
},
"language": {
"type": "string",
"description": "Language hint (optional, auto-detected)"
}
},
"required": [
"code"
]
} {
"type": "object",
"properties": {
"formatted": {
"type": "string"
},
"language": {
"type": "string"
},
"changes": {
"type": "number"
}
}
} L0 约束层验证器。在执行前检查操作是否违反不可变伦理边界。
{
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "Action to validate"
},
"context": {
"type": "object",
"description": "Execution context"
}
},
"required": [
"action"
]
} {
"type": "object",
"properties": {
"allowed": {
"type": "boolean"
},
"reason": {
"type": "string"
},
"constraint": {
"type": "string"
}
}
}