yapi_update_interface_mock
Update a YApi interface's normal mock response body with JSON or JSON Schema. Use dry run to preview changes before applying.
Instructions
更新接口返回体文档(普通 Mock)。高级脚本和期望请用对应工具。
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": {
"interfaceId": "<interfaceId>",
"resBody": "<resBody>"
},
"name": "yapi_update_interface_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | ||
| resBody | Yes | 返回体 JSON 字符串,或 JSON Schema 字符串 | |
| projectId | No | ||
| interfaceId | Yes | ||
| resBodyType | No | ||
| resBodyIsJsonSchema | No |