yapi_import_data
Imports API documentation data into YAPI from formats like Swagger, Postman, HAR, or JSON to manage and organize interface details across projects.
Instructions
导入接口数据到 YAPI
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "<type>",
"json": "<json>"
},
"name": "yapi_import_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | YAPI 接口页面 URL(可选),如 https://yapi.xxx.com/project/1009/interface/api/108375,会自动解析出项目 ID、接口 ID 等参数 | |
| project | No | 项目 ID(可选,不传则使用默认项目) | |
| type | Yes | 导入类型,如:swagger、postman、har、json | |
| json | Yes | 导入的 JSON 数据 | |
| merge | No | 合并模式:normal(普通)、good(智能合并)、merge(完全覆盖) |