Skip to content

version_read_file

MCP 工具

version_read_file

📖 描述

从文件中读取版本号列表(每行一个版本字符串)。

📥 参数

参数类型必填说明
filepathstring✅ 是文件路径

🔌 调用示例

json
{
  "tool": "version_read_file",
  "arguments": {
    "filepath": "/path/to/releases.txt"
  }
}

📤 返回示例

json
{
  "versions": [
    "1.0.0",
    "1.1.0",
    "1.2.0"
  ],
  "count": 3
}

📚 相关


源码

定义于 internal/mcp/tools.go,处理逻辑在 internal/mcp/handlers.go

基于 MIT 协议发布