get_yapi_data
Fetch YApi interface data from an export URL to generate TypeScript types, mock data, and API request code. Supports filtering by method, path, and cache refresh.
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": {
"remoteUrl": "<remoteUrl>"
},
"name": "get_yapi_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | 请求方法 | |
| listAll | No | 是否列出所有接口 | |
| remoteUrl | Yes | YApi导出接口URL | |
| forceRefresh | No | 是否强制刷新缓存,默认false | |
| interfacePath | No | 指定接口路径 |