roma__ImportApiDefinitionsV2
Imports Swagger-compliant API definitions into a ROMA instance, letting you register APIs with custom extension fields defined in the ROMA user guide.
Instructions
[ROMA] 导入API。导入文件内容需要符合swagger标准规范,自定义扩展字段请参考用户指南的“附录:前端API的Swagger扩展定义”章节。
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": {
"instance_id": "<instance_id>",
"project_id": "<project_id>"
},
"name": "roma__ImportApiDefinitionsV2"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | 项目ID,获取方式请参见API参考的“附录 > 获取项目ID”章节。 | |
| instance_id | Yes | 实例ID |