yapi_get_interface_mock
Retrieve the mock response body and mock URL for an interface by providing its interface ID. Use this to get the exact mock schema for testing or development.
Instructions
读取接口的 res_body(普通 Mock 文档 / JSON Schema)以及 mock URL。
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>"
},
"name": "yapi_get_interface_mock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | ||
| interfaceId | Yes |